29 Sep '16, 3pm
Check My Code: Tips to Keep Ruby Code Smell-Free | Codementor
Common code smells include long classes, large methods, dead code, and repetition. These issues are not only bad practice, but they indicate that there is probably a structural issue with our code. Code smells might not cause an error immediately, but they make code difficult to maintain and might cause errors for edge cases. Below, we cover a few different smells, including dispensable code, long conditionals, classes with attributes but no methods, poor variable naming, and over commenting.