Skip to content

Beginner Feedback #6287

Description

@titouandk

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions