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
Neto
Neto•8mo ago
uploadthing is using effect but effect is super new, so you wont find that many in production even less with important code
cje
cje•8mo ago
it just became prod ready (ie stable api) like 2 weeks ago people are excited about it
Neto
Neto•8mo ago
^
FleetAdmiralJakob 🗕 🗗 🗙
Hi, can someone explain why I need this? I currently have ts with ts reset and strict eslint rules. What problem does this solve?
Neto
Neto•8mo ago
adding the good part of fp to typescript you dont need to use it it will be useful for projects
FleetAdmiralJakob 🗕 🗗 🗙
Sure but in which way?
Neto
Neto•8mo ago
generators error as results currying piping
FleetAdmiralJakob 🗕 🗗 🗙
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?
Neto
Neto•8mo ago
app libraries can use it, but its less useful
JulieCezar
JulieCezarOP•8mo ago
they say they are the "standard library for TS"... An example for things you can do (this is simplified psedo)
const myFetch = fetch("smth")

const res = Effect.pipe(
myFetch(),
retry(3),
processData(),
)
const myFetch = fetch("smth")

const res = Effect.pipe(
myFetch(),
retry(3),
processData(),
)
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 💪
Want results from more Discord servers?
Add your server