Re:The Power of Interoperability: Why Objects Are Inevitable...
by coliveira on Tuesday June 01, 2021 @04:46PM
(#27361043)
The main problem with objects is the proliferation of conceptual entities that increase complexity instead of reducing it. This was in full display with the creation of design patterns, which introduced a large number of concepts meant to simplify programming, but that in fact multiplied the number of classes in an exponential way sometimes without improving understanding. Sometimes you'll have better code by just removing the crutch, but OO languages are designed to favor this kind of approach.
[ Parent
| on HN ]
Re:The Power of Interoperability: Why Objects Are Inevitable...
by throw_m239339 on Tuesday June 01, 2021 @06:07PM
(#27362057)
"design patterns" are mostly here to make up for the flaws of Java or C++. For instance, there is no need for factories classes when a language supports passing functions as arguments of other functions and closures.
I say mostly, because something like the Observer pattern is still useful even outside OO. It's also a way to communicate an intent or a role a certain class has.
I think all the SOLID/DRY/Clean code concepts were more harmful to development in general than design patterns, because these ideals became an obsession.
Re:The Power of Interoperability: Why Objects Are Inevitable...
by jcelerier on Tuesday June 01, 2021 @06:19PM
(#27362181)
> For instance, there is no need for factories classes when a language supports passing functions as arguments of other functions and closures.
C++ supports passing functions as arguments and closures yet factories are often necessary, how else are you creating new objects from dynamically loaded plug-ins ?