O'Reilly logo

Refactoring with Microsoft Visual Studio 2010 by Peter Ritchie

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

The smell of code

We first introduced Code Smells in Chapter 1, if you're not familiar with Code Smells, it may sound strange. The metaphor "something doesn't smell right" is the gist of code smells. Experienced developers that read code can often notice subtle problems with the code that they may or may not be able to put their finger on directly. This is a "Code Smell". Code Smells are based on viewing the code, so it's arguably one of the major means of improving code readability. Many code smells are particularly geared towards the ability to read code. "Long Method" and "Large Class" code smells, for example, have a side effect of being hard to read because the reader needs to page up and down in the code to follow what it is doing.

Duplicate ...

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