Good code != code that performs the required functionality
Sometimes code works as it’s supposed to, but it just doesn’t smell right.
We all know that smell is subjective, and code smells are no different. I have my personal pet peeves and I’m sure you have yours. I’m going to touch on a couple of things in code that smell bad to me…. and how to improve their smell.
I’ll start off with five obvious ones and I’ll end with three of my favorites. …