O'Reilly logo

Pro PHP Refactoring by Jacopo Romei, Francesco Trucchia

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

C H A P T E R  2

image

Finding “Bad Smells” in Code

Kent Back's grandmother once said, “When it stinks, change it. ” Obviously she was talking not about code, but about Back's child. Well, we do not believe it, but the same sentence should be totally applied to the development of software.

Martin Fowler talks about this strange history in his book Refactoring: Improving the Design of Existing Code, and Kent Back, the father of Agile Method, helped him write this book. We will take a lot of Martin Fowler and Kent Back's refactoring concepts and try to move them into a PHP context.

Why Code Can Smell

Often, we must work with code that stinks, or rather, ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required