Confessions of a Backend Developer
summary
Argues that MVC/ADR leave the model as an ad hoc mess and shows how Clean Architecture (hexagonal/onion) keeps the domain core independent so business logic tests run without framework or database. Demonstrates DDD primitives: user ID value object, money and entity patterns, repositories that swap storage, application services for translation, domain services for cross-entity flows. Shows PHP techniques that enforce immutability and types—protected clone, disabling magic setters, hand-rolled enums and a type-safe callable wrapper—and claims these make the design portable and verifiable.
AI-written summary · about
chapters (18)
- 0:00Introduction
- 0:50MVC Frameworks
- 3:09Datacentric Architecture
- 4:00Robert C Martin
- 5:43The Clean Architecture
- 10:10ID
- 11:10User ID
- 12:10Domain Entities
- 13:50Repository Pattern
- 14:40Application Services
- 16:55Dependencies
- 17:45Inversion
- 18:30PHP Code
- 18:50Questions
- 21:05Magic Methods
- 22:40Callable Type Safe
- 24:00Enums
- 25:10Scalars








