3 ms·
> So you instead write a generalized class to draw a window Using Classes when you should be using functions is one of my biggest peeves with OOP and the progr
by bluefirebrand 4y ago
> So you instead write a generalized class to draw a window
Using Classes when you should be using functions is one of my biggest peeves with OOP and the programmers who write it.
Especially those who wind up writing a "Window" Class with one function "draw" and nothing else
- kaba0 4y agoTo make it more OOPy you would probably give a few instance variables to the window like width, height, title, etc. That way, a simple drawWindow function would not be a better replacement anymore.