Chasing "Perfect"
summary
Concrete claim: focusing on low‑level code pays off. Uses Laravel/Eloquent, PHPUnit tests and stepwise refactorings to turn a hairy Order::total with nested conditionals into small classes: FixedValueCoupon, PercentCoupon, MinimumQuantityCoupon, plus a null object pattern for no‑coupon. Demonstrates replace conditional with polymorphism, runs tests green after each change, and shows a tiny Larapub demo (sold 60 this week 370 total ~$1,800) and a PSR‑2 CI comment bot.
AI-written summary · about
chapters (5)
- 0:00Start
- 1:46The Command Bus
- 4:13I don't really see the difference. Whether you have two elements in a statement, or two services in some distributed architecture, the principles are the same.
- 4:46Stop worrying about ARCHITECTURE
- 33:04It's all about the Little Things








