The world is NOT cruddy by design
summary
Argues that CRUD UIs and REST hide real behaviour and then shows practical refactorings: split read/write models, implement explicit action methods and commands, emit events and configure post published handlers, prefer mutators or GraphQL mutations to PATCHing fields, and replace tangled status fields with actions like cancel or fulfill. Cites scale: 15 PHP developers on ~1M lines and a past app with 190M registered users, and demonstrates easier debugging, authorization and evolution.
AI-written summary · about
chapters (15)
- 0:00Start
- 0:33Cruddy by design
- 0:52Different projects
- 5:21Object oriented Five?
- 5:52Feature envy from Martin Fowler
- 6:21Read actions
- 7:46Ubiquitous language
- 9:42Eloquent event listener
- 12:13Post actions with events
- 13:54Vuex data flow
- 16:16REST - good standard?
- 19:56Extract actions to own controller if needed
- 20:27Command classes
- 21:22Typical controller write action
- 22:07Conclusion
related talks
27mConfessions of a Backend Developer
57mRefactoring a large legacy PHP Application: a case study
40mBarely Enough Design
01h 00mIn Defence of PHP
44mNaming Things
36mWe're gunna program like it's 1999
37mHow I Accidentally Wrote the Best Code of my Career
28mReformat, Refactor, Replace: A practical guide for dealing with legacy software
