What baffles me about OOP is that massive aspects of how to use it have changed, and that change happened after it gained popularity as a good technique. How could it have become popular when people were doing it wrong? The article mentions inheritance, but there's also heavy vs light classes. When I was taught OOP, an object knew how to do all the things to itself. It could draw itself on the screen, modify itself,…
Re: Moving Beyond the OOP Obsession
#71Perhaps the question isn't binary, but rather have a whole range of answers. Heavy classes was probably better than the procedural code that came before it, but light classes end up more easy to reason about in the long run. I know for a fact that I have made that progression as I gained experience.