10
Managing Side Effects: A JavaScript Effect System in 30 Lines or Less
(lackofimagination.org)
Welcome to the main community in programming.dev! Feel free to post anything relating to programming here!
Cross posting is strongly encouraged in the instance. If you feel your post or another person's post makes sense in another community cross post into it.
Hope you enjoy the instance!
Rules
Follow the wormhole through a path of communities !webdev@programming.dev
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.
Do you have a version with type annotations, perhaps in a gist?
I've added JSDoc type annotations to the library.