Discovering the Benefits of Effect for Dependency Management and Error Handling in JavaScript
New to Effect, all the youtube videos the algorithm has been pushing on me finally worked. Wrote up a quick Todo Crud API with the bun http platform, and find that effect is really nice. It solves a lot of issues I've had in the past specifically with ensuring dependencies (namely, async loaded configs and database connections) are definitely loaded first, and passed to dependent modules without a ton of boilerplate or overly complex IoC shenanigans. I love errors as values, I love that I can see every unhandled error case and unsatisfied dependency just from intellisense without having to guess or run the application to receive ambiguous, arcane errors about unfulfilled dependencies for injection.
My only question, is when are the effect devs going to write a TS like language, and just bake errors as values into the language instead of relying on JS :p
My only question, is when are the effect devs going to write a TS like language, and just bake errors as values into the language instead of relying on JS :p
