Architecture
How a typed domain becomes a program: domain behaviour described as algebras, interpreters supplied for them, and effects kept at the edges. Part of Type-driven design.
- Functional domain modeling: Ghosh’s principles, keeping effects out of the domain, modules as algebras with laws, composing effectful operations, commands and events, and bounded contexts.
- Effects, interpreters and wiring: ways to wire an algebra, Reader and Kleisli, free monads, ZIO’s type, algebraic effects, and initial and final embedded DSLs.
- Tagless final: the encoding and its EDSL origin, the expression problem, rules for production code, and two critiques.
- Declarative design: declarative specifications and engines, four senses of “declarative”, DSLs, MDE and ontologies, and key contributors.