3 ms·
"This is silly. Everything has a learning curve, but once you understand that everything exists inside an object you are good to go. The rest is just design pat
by fsloth 11y ago
"This is silly. Everything has a learning curve, but once you understand that everything exists inside an object you are good to go. The rest is just design patterns that are proven to make your life easier!"
Maybe it's just me but this is my main gripe with OO. I sometimes need to write involved data processing tasks and it's much simpler if I first think in graphs or through a relational model. The objects are light and either a way to encapsulate state (as in parser), a simple structure (as in a vector xyz) or a container.
Complex data lives in relationships between the data - as opposed to 'encapsulating into an object' - this keeps the system small, easy to understand and modify.
Sure, objects are a nice way to offer an interface to something but I've found the statement 'objects all the way down' usually means poor design.
This gripe is of course mainly pedagogical - students (like I was, once) are exposed to a subotimal abstraction of software composition when objects are introduced as the way to design and implement software.
Sure, they are nice in some places, I don't deny that.