A code smell can be thought of as smelling gas or smoke in your home. It serves as an indicative warning that your code needs some attention. Bad code smells can be an indicator of factors that contribute to technical debt. Duplicate code is the most common code smell you’ll find in programs.

8m read timeFrom towardsdatascience.com
Post cover image
Table of contents
7 Code Smells You Should Know About And Avoid#1 Using print statements to debug#2 Duplicate code#3 Magic numbers#4 Leaving commented out code in place#5 Dead code#6 Storing variables with numeric suffixes#7 Unnecessary classes (Python specific)

Sort: