Development, by the numbers
summary
Shows exact metrics and tools: cyclomatic complexity (decision points), impact (path) complexity (unique execution paths/tests needed), and the "crap index" that combines complexity with test coverage. Uses phploc, pdepend, phpmetrics, PHP Mess Detector and a Jenkins plugin to measure real projects. Finds Drupal with a function at cyclomatic ~41 and another pathological case whose permutation count he equates to 336 trillion tests; Drupal 8 grows from ~10k to ~180k LOC in a year; recommends thresholds (<5 good, 5–15 ok, 15–30 risky, >30 bad) and preventing violations via pre-commit checks.
AI-written summary · about
chapters (11)
- 0:00Introduction and motivation
- 1:29Cyclomatic complexity basics
- 5:34Impact complexity explained
- 13:15Change risk analysis predictions
- 16:29PHPLOC tool overview
- 20:48PDepend metrics deep dive
- 25:16PHPMD detector and CI
- 27:48Drupal 8 complexity trends
- 31:00Comparing open source projects
- 36:12Data insights and questions
- 37:16Limitations and business value
