Code Smells – Long Method

Another excellent post by Keith Ray on Code Smells – Long Method.
Comments should deal with why a certain design decision was made, why a certain algorithmn was chosen etc. – and not describe what’s going on in the code. Everytime you encounter a comment describing what a piece of code does, there’s an opportunity for Extract Method.

Comments are closed.