Hello,
I am a beginner learning Effect, and something struck me.
There are a lot of different ways (APIs variations) in Effect to do a given thing.
Some examples:
Context.GenericTag
Context.Tag
Effect.Service
runPromise
runPromiseExit
Services vs Layers, that do nearly the same thing.
Effect.provideService
Layer.provide
Layer.succeed
Layer.effect
... (there are a lot more examples)
This is supposed to help the developers, but I think this generally complicates learning and reading the code.
Whilst the docs says:
You don’t have to use all aspects of Effect at once, and can start with the pieces of the ecosystem that make the most sense for the problems you are solving.
We can indeed choose to restrain ourselves at the start, using only some APIs, but we need to know them all to read another codebase.
Hello,
I am a beginner learning Effect, and something struck me.
There are a lot of different ways (APIs variations) in Effect to do a given thing.
Some examples:
Services vs Layers, that do nearly the same thing.
This is supposed to help the developers, but I think this generally complicates learning and reading the code.
Whilst the docs says:
We can indeed choose to restrain ourselves at the start, using only some APIs, but we need to know them all to read another codebase.