2 ms·
I do agree that O-O design was fetishized starting in the 1990s and the results have been terrible. But this is strange to me: > In fact, his essay ends by to
by gumby 7y ago
I do agree that O-O design was fetishized starting in the 1990s and the results have been terrible. But this is strange to me:
> In fact, his essay ends by touting functional programming as the superior alternative — a competing paradigm in which problems are modeled not with objects but with pure mathematical functions and an emphasis on avoiding changes in state.
O-O is a way of encapsulating abstraction. That's it. It could mean actors, message passing generic functions composition and/or inheritance. There's no reason you couldn't program in a purely functional O-O way.
I build hardware that uses a variety of different kinds of fasteners, and circuits with different kinds of components. I could build all my logic circuits with only resistors and diodes (people used to do so, after all) but the fact that that's no longer a good idea doesn't mean I should try not to use resistors or diodes at all.