November 2018
Intermediate to advanced
346 pages
8h 12m
English
These smells are cases where the cost to maintain the code is higher than it needs to be. They are typically caused by laziness or lack of experience. It's always easier to copy/paste code than to carefully refactor it. The problem is, coding like this is like eating unhealthy snacks. It feels great in the moment, but the long-term consequences suck.
They can be found by taking a critical look at the source code and asking yourself do I really need this code? Or, can I make this easier to understand?
Using tools such as dupl (https://github.com/mibk/dupl) or PMD (https://pmd.github.io/) will also help you identify areas of the code to investigate.
These smells include the following:
Read now
Unlock full access