Re:Why OO Sucks by Joe Armstrong (2000)
by fulafel on Friday March 26, 2021 @02:26AM
(#26589299)
I think you have your own definition of OO going here. Maybe a better name for it would be db data centric programming? You can use a class based object system to do it, but it's not needed or necessarily especially well suited for it.
I agree positional arguments can be bad in a case like this. OTOH you can just look at .is_blocked_by? as infix syntax here which just works in many languages. The syntax problem in the example can also be solved eg by using named arguments. (But to reiterate record.function(x) syntax doesn't need an OO system either, or even language support if you have macros)
I agree positional arguments can be bad in a case like this. OTOH you can just look at .is_blocked_by? as infix syntax here which just works in many languages. The syntax problem in the example can also be solved eg by using named arguments. (But to reiterate record.function(x) syntax doesn't need an OO system either, or even language support if you have macros)