PHP String Class 14: ReplaceSubRange, Phan, Static Code Analysis

Опубликовано: 24 Июль 2026
на канале: XD with Josh Bruce
136
1

Refactored ReplaceSubRange using PHP's array_slice standard library function. Attempted to install a PHP static code analyzer, Phan, from Rasmus...failed, mostly.

Why TDD?
Safety net for refactoring.
Safety net for re-engineering.
Executable documentation for our APIs and interactions.

Why NOT TDD?
Prove correctness or completeness.

These are unscripted, unrehearsed, mostly unedited, and with minimal prep-work. A more raw look at software development. This was started with a new user on my laptop; so, local settings and shortcuts are not present and will be introduced as we go. Basically, imagine pair or mob programming from a fresh laptop and a pretty big time delay.