Duplicate Code? Introduce Null Object
One of the most significant code smells is having duplicate code. There are primarily 2 forms of code duplications
- Explicit — These are the ones where there is blatant copy paste of the code. Methods are repeated within classes and it is…