6 ms·
Someone with 15 years programming OOP told me once: here is the best way to describe object oriented programming: you asked for object “monkey”, and you got the
by joering2 8y ago
Someone with 15 years programming OOP told me once: here is the best way to describe object oriented programming: you asked for object “monkey”, and you got the whole jungle, as well as monkey’s bananas.
- walterstucco 8y agoYou're quoting Joe Armstrong, creator of Erlang > Because the problem with object-oriented languages is they’ve got all this implicit environment that they carry around with them. You wanted a banana but what you got was a gorilla holding the banana and the entire jungle.
- panax 8y agoSteve said it too, but he said it like he was proud of it: https://www.youtube.com/watch?v=Gk-9Fd2mEnI&feature=youtu.be&t=27m55s https://www.youtube.com/watch?v=Gk-9Fd2mEnI&feature=youtu.be... "You need all the objects that come with it to make it work"
- ilovecaching 8y agoExactly, you get a tangle of objects and data that's impossible to reason about, and isn't made explicit in the types.
- mehrdadn 8y agoI don't really follow this. A fleshed-out example describing the trade-offs is almost mandatory for this kind of criticism since this could be very easily due to a misunderstanding or misapplication of OOP rather than a problem with it.
- kirkules 8y agoI don't have enough experience to agree or disagree with the quote you're responding to, but I think the intent was in part to claim that OOP gets misapplied enough that if you're working with a large enough group or company, that's what you'll end up with.
- 725686 8y agoThat would be Joe Armstrong: https://www.johndcook.com/blog/2011/07/19/you-wanted-banana/ https://www.johndcook.com/blog/2011/07/19/you-wanted-banana/
- DonHopkins 8y agoYou wanted a banana but you got Carmen Miranda. "That's no banana; that's my nose! Acha cha cha cha!" -Jimmy Durante https://youtu.be/EL_HFa13CT4?t=1540 https://youtu.be/EL_HFa13CT4?t=1540
- deleted 8y ago[deleted]