HackerTrans
TopNewTrendsCommentsPastAskShowJobs

ckmar

no profile record

Submissions

Show HN: Base N Clock - The current time in various number bases

craigmichaelmartin.github.io
4 points·by ckmar·5 месяцев назад·2 comments

Ask HN: Join me in making Remix a social platform for apps

1 points·by ckmar·в прошлом году·1 comments

PureORM: An ORM which is only an ORM

github.com
3 points·by ckmar·в прошлом году·0 comments

Show HN: Unfluence – A private social graph for trusted recommendations

unfluence.app
2 points·by ckmar·в прошлом году·1 comments

Strict error handling in JavaScript with a functional try

github.com
1 points·by ckmar·3 года назад·1 comments

Ask HN: Why is web architecture optimized for writes?

1 points·by ckmar·4 года назад·1 comments

Show HN: Disappear your web framework with Static Route Generation

github.com
2 points·by ckmar·4 года назад·1 comments

comments

ckmar
·в прошлом году·discuss
Have you seen unfluence? https://unfluence.app
ckmar
·в прошлом году·discuss
Read the manifesto [0] or check out the product walkthrough video [1].

[0] https://unfluence.app/about

[1] https://www.youtube.com/watch?v=mFZ8zcF8r8M&ab_channel=Craig...
ckmar
·2 года назад·discuss
Have you seen Pure ORM? It's an ORM that purely does object relational mapping.

You write SQL but instead of getting back flat and potentially-collided data, you get back pure objects which are properly structured.

https://github.com/craigmichaelmartin/pure-orm
ckmar
·3 года назад·discuss
> The SQL is not really the point. It's about the rows and objects, moving the data from the objects to the INSERT statement, moving the data from the rows you SELECTed back to the objects.

If anyone is looking for this "pure" ORM (no query builder API) in Node there is https://github.com/craigmichaelmartin/pure-orm
ckmar
·3 года назад·discuss
One line of code which is specific in what it catches:

    // Either foo or someError will be defined
    const [foo, someError] = itry(someFn, SomeError);
Instead of nine lines which feel like they are working uphill against the language: dealing with variable scoping issues, deeper nesting, and footguns like forgetting to re-throw.

    let foo;
    try {
      foo = someFn();
    } catch (err) {
      if (err instanceof SomeError) {
        // do something with error
      } else {
        throw err;
      }
    }
    // use foo
ckmar
·4 года назад·discuss
TLDR; Evanesce is a tool to provide Static Route Generation (SRG) by disappearing your web framework for opt-in routes and building the HTML for a route in the background when a dependency of the route changes.