Understanding Code Smells and How to Prevent It
comment 0

Understanding Code Smells and How to Prevent It

Programmers are people, and like people we come from different backgrounds. This affects how we first learned to code. For some, it can be from formal education in computing (tertiary education) and for others, they are self-taught out of an interest or necessity. The quality of code produced can be seen (but it also depends on the individuals themselves).

People who learn to code from formal courses tend to have a structured method of coding, where else those who are self-taught have multiple ways to approach an issue but may lack a standardized way of coding. One thing that both groups have in common with one another is that they are not exempt from writing code that ‘smells’ from time to time.

Code smells, also known as bad smells, in computing refers to any symptom in the source code of a program that possibly indicates a deeper problem.

Some examples of code smells that you can learn are:

  • Clear Naming Conventions
  • Stay DRY
  • Long Parameter Lists

In this post, the author explains about what is code smell is all about and how it can be prevented.

Learn more about code smells

Filed under: Resources

About the Author

Posted by

Tony is a web analyst and developer for Stampede. He is highly inquisitive, a quick learner and always ready to take on new challenges while trailblazing through the tricky forests of web programming. A family man - in his free time, he spends time with his lovely wife and daughter.

Leave a Reply