Code Smell 45 - Not Polymorphic
Methods should be interchangeable if they do the same.
Problems
Missed Polymorphism
Coupling
IFs / Type check Polluting.
Names coupled to types.
https://maximilianocontieri.com/how-to-get-rid-of-annoying-ifs-forever
Solutions
Rename methods af...
maximilianocontieri.com2 min read
Chris Bongers
Looking to get into development? As a full-stack developer I guide you on this journey and give you bite sized tips every single day 👊
This is such an important one, and honestly, I got this wrong some times, you want to name something correctly, but forget you already in a class or whatnot.
Thanks for the write-up!