Daily Effect

This is a beginner-friendly course to get familiar with the Effect ecosystem. The aim of this course is to help you discover the most commonly used functions in the Effect libraries. The Effect docs are very thorough, but newcomers may find them overwhelming.

This course would make a great companion to other entry-level Effect courses. I really appreciated Sandro Maglione's course and Ethan Niser's workshop.

Effect consists of many libraries, each with many modules, each with many functions. In each lesson, we'll explore a single function. Thankfully, the most useful functions are often the simplest to understand.

  1. 7

    pipe

    Pass a value along a pipeline of functions

  2. 9

    Effect.try

    Attempt a synchronous operation that may fail

  3. 15

    Effect.gen

    Use generator function syntax to write readable effect logic

  4. 16

    Context.Tag

    Define a tagged service for dependency injection

  5. 34

    Layer.provide

    Combine layers by feeding outputs of one layer as inputs to another

  6. 35

    Layer.empty

    Combine layers by feeding outputs of one layer as inputs to another

  7. 38

    Effect.tap

    Use the result of an Effect without changing the return value

  8. 39

    Effect.zip

    Run two effects (sequentially or concurrently), returning the results of both