3 ms·
This modern stigma against inheritance is weird. I feel like the people who speak against it either don't actually use it or used it poorly and got burned. I u
by twomoretime 7y ago
This modern stigma against inheritance is weird. I feel like the people who speak against it either don't actually use it or used it poorly and got burned.
I use it all the time and find it perfectly abstracts things. Yes you can shoot yourself in the foot if you're not careful but wasn't that something we used to like about cpp? If a language is more expressive, I'd wager on average it's more likely to have bugs, but the benefit is an easier expression of skill and brilliance.
- jonathankoren 7y agoHierarchies based on functional relationships are simple. Hierarchies based on intrinsic properties become messy fast. That’s why you throw up your hands and build property webs instead of heirarchies.1
- taeric 7y agoIs it modern? I remember being taught to avoid heavy nominal hierarchies about thirty years ago. Again, they can be useful. No, they are useful. But they are fragile. And are but one way to look at things.