Skip Navigation

InitialsDiceBearhttps://github.com/dicebear/dicebearhttps://creativecommons.org/publicdomain/zero/1.0/„Initials” (https://github.com/dicebear/dicebear) by „DiceBear”, licensed under „CC0 1.0” (https://creativecommons.org/publicdomain/zero/1.0/)A
Posts
3
Comments
5
Joined
2 yr. ago

  • Integration tests against a real database can and should still be performed. The idea here is the ability to test business logic in isolation without using mocks. Effect systems also have other benefits. You basically get cross-cutting concerns like logging and profiling for free. Every single database call, API request, and file read in your entire application can be easily logged and profiled.

  • You can still test the functions individually or run the entire flow against a test database, but without an effect system like this, it's very hard to test business logic in isolation.

  • I've added JSDoc type annotations to the library.

  • Author here. In my experience, AI coding tools like Claude Code can write code in the Effect system style, and that could be a great starting point for getting developers not familiar with this approach on board.

    I considered adding JSDoc type annotations, but that would make the code a bit verbose.

  • Programming @programming.dev

    Managing Side Effects: A JavaScript Effect System in 30 Lines or Less

    lackofimagination.org /2025/11/managing-side-effects-a-javascript-effect-system-in-30-lines-or-less/
  • Cool GitHub Projects @programming.dev

    Tie-in: A relational data component library for Node.js

    github.com /aycangulez/tie-in