Your code stinks! 13 signs that your code needs refactoring

Code smells are signs that there may be deeper problems with your code; here are a number of common ones to keep your nose peeled for
  • 1 of 14

Credit: REUTERS/Health Ministry/Handout

An important part of a software developer’s job is to find and fix problems within code. Everybody knows about bugs that prevent software from functioning properly. Sometimes, though, there are more subtle problems that don’t prevent it from doing what it's supposed to do, but which can make it harder to maintain or more susceptible to bugs in the future. Code smells are indicators of such problems which, when present, can mean that your code should be refactored. There are many types of code smells, some of which are language-specific. However, there are a number of commonly accepted code smells. Here are a baker’s dozen of signs that your code could use some Febreze.

Return to slideshow
Join the discussion
Be the first to comment on this article. Our Commenting Policies