Code Smells
Get familiar with code smells, how to recognize them, and how to get rid of them.
We'll cover the following...
Code smells
Code smells act as alarm bells in our code that can lead to inefficiencies or failures in the worst-case scenario. Usually, the root cause is a failure to follow programming best practices while coding the program. Every programming language establishes its coding rules and practices, but if we don’t follow them, we’ll likely find code smells. Examples of code smells are:
- Duplicated code
- Long methods
- Long parameter list
- Unnecessary