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 ?
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.