~/talk

Overcoming Our Primitive Obsessions

TalkinFrenchat Forum PHP 2025 · 2025-10-09..10-10· [php, software-architecture]
links:none on file
slides:none on file

Shows how replacing primitive strings with richer types reduces bugs and duplicated rules: use a SKU value object to enforce length/currency, a Category enum that embeds color, and remove scattered Twig extensions/managers. Adds PHPStan architecture checks to catch wrong types so validation lives in one place; adding a new category becomes a small localized change instead of edits across many files.

AI-written summary · about

  1. 0:00Introduction
  2. 1:14Code smells origins
  3. 5:28Primitive obsession explained
  4. 10:18Concrete examples
  5. 13:49Fixing SKU bug
  6. 22:38Primitive obsession in frameworks
  7. 24:04Adding event category
  8. 31:05When to use primitives
  9. 32:52Overengineering vs simplicity
  10. 35:19Conclusion
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.