2 ms·
I was tinkering around in the Minecraft code and man, I have no idea how people use inheritance when designing complex games without completely losing their min
by asdfman123 6y ago
I was tinkering around in the Minecraft code and man, I have no idea how people use inheritance when designing complex games without completely losing their minds.
I know composition vs. inheritance is a nuanced debate, and there are people who can tell me exactly how to do inheritance the right way and why they feel it's better -- but after I learned how much cleaner composition feels I went with it and never seriously looked back.
- imtringued 6y agoI'm not sure what you mean. Subtyping is primarily used for polymorphism. A pretty common mistake is doing polymorphism at the wrong layer but not using polymorphism at all is also a mistake.