Re:The faster you unlearn OOP, the better for you and your s...
by jstimpfle on Sunday November 25, 2018 @09:52AM
(#18527095)
> Imagine there are hundreds of ways Hit can be implemented and used in different situations.
This is the typical argument you get to hear from OOP apologetists. And the codebase is rotting, just for concerns about hypothetical problems...
I remember one time when I was criticized for putting in too much global data and not enough classes "because what if we have two GUI instances?". The guy of course had no idea why he would want that, and how it should work.
Imagine there are hundreds of ways Hit can be implemented and used in different situations. That's the reason for breaking out this type of abstraction. I agree this example the author used isn't probably a clear one in which one should use OOP.