▶

Refactoring Conditionals into Simple Objects

Confreaks · Talk · YouTube title: RailsConf 2014 - All the Little Things by Sandi Metz
Why it's here

HN treats it as a top-tier programming talk for learning refactoring and for the wrong-abstraction principle, recommended repeatedly over a decade.

What it covers

Sandi Metz takes an ugly section of conditional code and refactors it into a few simple objects, bridging object-oriented theory and practice. The talk includes her take on the Gilded Rose refactoring kata and the idea that duplication is cheaper than the wrong abstraction.