good vs bad
Code practice
Small, real examples - the kind of decision that doesn't show up in a feature list.
- PHPSymfonyCQRS
A command bus over a fat controller
A controller that queries, checks business rules, and persists is doing the use case's job. The framework layer should stop at "turn a re…
- PHPDDD
Value objects over primitive obsession
A string $email can hold "not-an-email" all the way to your database. The type system isn't lying to you - it's just not telling you the…
- Vue 3TypeScript
Extract the composable before the component grows a second job
A component that fetches, filters, and renders is doing three jobs. Only one of them is a component's job.