| ▲ | canyp 3 hours ago | |
> I Didn’t Understand Polymorphism For a Decade > And yet, my lack of awareness of polymorphism showed me I’ve been writing little more than structured programs. That I could replace conditionals and case staments with specialized classes had never crossed my mind. > Polymorphism is covered in every college OO course. Consider yourself blessed then because you're in for one hell of a ride if you pursue that path to its extreme. For me, it was the opposite: been taught OOP, I had to unlearn most of it to be able to better structure my mind and how I think about programs. You should know what polymorphism is (also, there's static, dynamic, ad hoc, single dispatch, multiple dispatch), but I don't think it's a weakness if you have not been using it that much (the real weakness is over-using it and making a clusterfuck out of your code.) Which is a long-winded way of saying that you could be doing much worse, if that makes you feel any better, lol. | ||