
Chrichton
Advanced Functional Programming with Elixir: 1 struct per bounded context
I read chapters 1-3 so far.
I noted that the FunPark-Project has exactly one struct (domain-object) per bounded context.
I would be interested in a discussion about how to decide which domain-objects belong to which bounded context.
Thanks for writing this book, that shows DDD with elixir + very important concepts.
Cheers from Heiko
First Post!

JKWA
Hi back from Seattle! You bring up something I hadn’t considered. I trimmed each bounded context down to a single struct, but of course, in a real system, they’d include multiple structs and their interactions.
I’m using DDD to talk about organization so polymorphism doesn’t feel like magic and modules don’t turn into grab bags of random functions. But it probably makes sense to add a note that the bounded contexts are overly simplified.
Popular Pragmatic Bookshelf topics










Other popular topics










Categories:
Sub Categories:
Popular Portals
- /elixir
- /rust
- /wasm
- /ruby
- /erlang
- /phoenix
- /keyboards
- /rails
- /js
- /python
- /security
- /go
- /swift
- /vim
- /emacs
- /clojure
- /haskell
- /java
- /onivim
- /typescript
- /svelte
- /crystal
- /kotlin
- /c-plus-plus
- /tailwind
- /gleam
- /react
- /ocaml
- /elm
- /flutter
- /vscode
- /ash
- /opensuse
- /html
- /centos
- /php
- /deepseek
- /zig
- /scala
- /sublime-text
- /textmate
- /lisp
- /nixos
- /debian
- /react-native
- /agda
- /kubuntu
- /arch-linux
- /django
- /revery
- /ubuntu
- /manjaro
- /spring
- /nodejs
- /diversity
- /lua
- /julia
- /slackware
- /c
- /neovim