HackerTrans
トップ新着トレンドコメント過去質問紹介求人

ckmar

no profile record

投稿

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

craigmichaelmartin.github.io
4 ポイント·投稿者 ckmar·5 か月前·2 コメント

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

1 ポイント·投稿者 ckmar·昨年·1 コメント

PureORM: An ORM which is only an ORM

github.com
3 ポイント·投稿者 ckmar·昨年·0 コメント

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

unfluence.app
2 ポイント·投稿者 ckmar·昨年·1 コメント

Strict error handling in JavaScript with a functional try

github.com
1 ポイント·投稿者 ckmar·3 年前·1 コメント

Ask HN: Why is web architecture optimized for writes?

1 ポイント·投稿者 ckmar·4 年前·1 コメント

Show HN: Disappear your web framework with Static Route Generation

github.com
2 ポイント·投稿者 ckmar·4 年前·1 コメント

コメント

ckmar
·昨年·議論
Have you seen unfluence? https://unfluence.app
ckmar
·昨年·議論
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 年前·議論
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 年前·議論
> 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 年前·議論
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 年前·議論
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.