3 ms·
A lot of these initial points I don't think are relevant -- you can model your data in objects, data structures are complex because business needs are complex,
by crazygringo 8y ago
A lot of these initial points I don't think are relevant -- you can model your data in objects, data structures are complex because business needs are complex, data models wind up having implicit graph dependencies as well...
BUT, "cross-cutting concerns" is where I think the main valid argument is. In my experience, OOP is just way too restrictive of a model, by forcing you to shoehorn data and code into an object hierarchy that doesn't reflect the meaning of what's going on.
So I totally agree with the conclusion: just store your data in "dumb" arrays with hash tables or database tables with indices... be extremely rigorous about defining possible states... and then organize your functions themselves clearly with whatever means are at your disposal (files, folders, packages, namespaces, prefixes, arrays, or even data-free objects -- it all depends on what your language does/n't support).
- gerbilly 8y ago>In my experience, OOP is just way too restrictive of a model... Maybe, but if it's cross cutting concerns that bother you, just combine OOP with an aspect oriented programming library.
- coolaliasbro 8y agoExactly! So long as the developer approaches the solution with the expectation of scaling and extensibility from the get, this should not be a problem.