Wrap up of “Nothing
Shared, Everything Gained by Kore Nordmann” by Kore Nordmann.
Emphasising the idea that the core should be pure and side-effect
pushed to the edges with practical examples in PHP.
Data Objects
- A place where the values are stored
- Better to make them constant
Services
- One data object in, other out
- Stateless means pure
- Pure means composable
Gateways
- Here are side effects
- Communication with outside world
- Simple abstraction at edge; alternative backends
Conttrollers
- Entrypoint
- Convert input to Data Objects
- Apply services
- Convert Data Objects to output
go back | CC0 1.0