Is anyone actually using the Effect library in production?
I've stumbled across the Effect (https://effect.website) library which promises "TypeScript for production"... Although a lot of it's features seem very enticing I have some hardships actually using it in my projects...
Plus, the way some people shill this product, makes me think it's kinda sus...
So... Is anyone using Effect? Are you satisfied? Do you see any cons? Etc.
Effect – The best way to build robust apps in TypeScript
Effect is a powerful TypeScript library designed to help developers easily create complex, synchronous, and asynchronous programs.
10 Replies
uploadthing is using effect
but effect is super new, so you wont find that many in production
even less with important code
it just became prod ready (ie stable api) like 2 weeks ago
people are excited about it
^
Hi, can someone explain why I need this? I currently have ts with ts reset and strict eslint rules. What problem does this solve?
adding the good part of fp to typescript
you dont need to use it
it will be useful for projects
Sure but in which way?
generators
error as results
currying
piping
Ok, maybe Im to noobish to understand this
Will look into this and try to understand
Is this more a library thing or also useful for Apps?
app
libraries can use it, but its less useful
they say they are the "standard library for TS"... An example for things you can do (this is simplified psedo)
In the example above you can try to fetch something, automatically retry if something goes wrong, and if it succeeds process the data... Also, if an error happens in any part of the code you know the exact error - made up e.g. fetch can fail with only 2 possible values: "REQUEST_FAILED", "CONNECTION_ERROR"
Basically it allows you to have more robust and safe code.
.
.
.
.
Okok I am still learning it but will try to add it to my projects where I feel it makes sense, ty all for the answers 💪