Re:Ask HN: What programming feature can't you live without?
by robin_philip on Tuesday May 02, 2017 @10:51AM
(#14246793)
Polymorphism and inheritance
[ Parent
| on HN ]
Re:Ask HN: What programming feature can't you live without?
by flukus on Tuesday May 02, 2017 @07:56PM
(#14251856)
This is what I'd love to see die the most. All too often logic will be spread out through unmanageable inheritance trees. I've never seen a completely necessary use for inheritance and I've seen tonnes of misuse.
Re:Ask HN: What programming feature can't you live without?
by robin_philip on Thursday May 04, 2017 @08:18AM
(#14264240)
Inheritance is probably misused a lot. Having deeply nested inheritance structures is definitely a bad idea. It is useful in some situations.
Polymorphism on the other hand is a powerful technique to build flexible systems.
Re:Ask HN: What programming feature can't you live without?
by shakna on Tuesday May 02, 2017 @10:58AM
(#14246851)
So a decent object system is a definite must for you?
What do yoy think of mostly-functional languages that add an OO library?
Re:Ask HN: What programming feature can't you live without?
by robin_philip on Thursday May 04, 2017 @08:23AM
(#14264260)
I haven't worked with a functional language professionally.
Closest I came was with python which supports these constructs.
I suppose it comes down to trade offs when designing a language and for what purpose you use them.