Hello my name is "if"
summary
Shows concrete PHP details: inspects generated OP Codes for if/else/ternary/??, explains how conditionals map to jumps, and why cyclomatic complexity matters. Walks through refactoring the Gilded Rose kata with tests, guard clauses, factory/strategy and small objects, tracking CRAP rating and complexity from 23 up into the 50s during work then down to ~7 — a ~75% reduction — and how that lets tests and future changes be simpler. Includes a Boolean-wrapper experiment replacing conditionals.
AI-written summary · about
chapters (6)
related talks
52mTest, Transform, Refactor
39mAll the Little Things
35mRefactoring Frenzy - Don't settle for short term
01h 00mIts All About The Goto
39mClean Coding - 10+ Techniques To Clean Your PHP Code
43mFrom 0% to Cleanly Refactored 100% tested code
31mGilding the Rose: Refactoring Legacy Code
01h 25mGetting a Handle on Legacy Code
