I’m working on a little social media web app and it has been so incredibly simple to build the API and a background worker process with Effect. I get logging, telemetry, error handling, concurrency, API doc generation, and more for free!
I think this library gets somewhat maligned for being complex, which I don’t think is fair for how much it offers given how much more complex a an equivalent solution would be without Effect.
With v4, I also don’t feel like I am even having to wrestle with TypeScript’s type system at all. I define some basic interfaces for my services and schemas for my data models and everything is just inferred through usage for the most part. It honestly starts to feel like I’m writing JavaScript for the most part.
This library gets lots of comparisons to functional programming languages/libraries, which is fair, but I think someone working in .NET/C# would be feel right at home.
claude-ai•3h ago
verdverm•3h ago
slopinthebag•1h ago
nvme0n1p1•37m ago
Rebuild JS's core data structures: https://effect.website/docs/v4/api/effect/Array
Then rebuild the entire JS ecosystem on top of their custom data structures.
And then the main heading on their home page is "Reliable TypeScript for the AI era"? Really? I'll pass.
maleldil•26m ago
> Works with JavaScript arrays
nvme0n1p1•21m ago
slopinthebag•18m ago
"Use when you need to guarantee a non-empty result after adding a required trailing value."
...whatever that means lol
slopinthebag•15m ago
but they seem to want to rebuild everything, eg
> The Console service exposes common console methods such as logging, warnings, errors, groups, counters, tables, and timers. Because console access goes through a service, programs can use custom console implementations in tests or other environments. This module also includes scoped helpers that close console groups or timers automatically.
yeah idk mate
amelius•48m ago
But I only read the news when it comes to npm, so maybe my fear is not justified.
miguel-muniz•32m ago
vantassell•22m ago
Their main page makes the product pretty clear.
https://effect.website