© 2026 LinearBytes Inc.
Search posts, tags, users, and pages
Maxi Contieri
Software Engineer
I am a senior programmer and I avoid IFs althougheter by using polymorphism
Your "senior" example violates Open Closed Principle
So, IMHO article is nice but incomplete
Thai Tran
Software Developer
Hi Maxi Contieri. Thank you for reading and commenting on my blog post. As always, I'm interested in hearing about SOLID principles. Would you please mind sharing with us more on that so that we could all learn from you?
Hi Thai Tran
Yes of course!
This article brings your senior solution:
This one talks about the problem with IFs
And this one shows how to use polymorphism instead of IFs
Thanks again for your article. It started a good conversation
Hi Maxi Contieri . Thanks very much for sharing it. This will be very helpful for my next posts.