Goodbye, shitty Car extends Vehicle object-orientation tutorial (2011)
1–10 of 177 posts
Re: Goodbye, shitty Car extends Vehicle object-orientation tutorial (2011)
#2Re: Goodbye, shitty Car extends Vehicle object-orientation tutorial (2011)
#3See, for example, section 3.2 in https://www.econstor.eu/obitstream/10419/66819/1/717744094.p...
Re: Goodbye, shitty Car extends Vehicle object-orientation tutorial (2011)
#4The suggestion of GUI widgets is certainly better and more concrete; although it's skating dangerously close to "Circle extends Ellipse" and "Square extends Rectangle" territory! (e.g. https://softwareengineering.stackexchange.com/questions/2381... )
Re: Goodbye, shitty Car extends Vehicle object-orientation tutorial (2011)
#5But inheritance is just a shit feature imo. Situations where it would be beneficial are extremely rare. I generally just pretend it doesnt exist. There are much better alternatives to it for most situations (eg. composition, build a class from other smaller classes that do one thing)
Re: Goodbye, shitty Car extends Vehicle object-orientation tutorial (2011)
#6I wish someone had told me this when I first started coding. I wasted so much time building pointless hierarchies based on ontology rather than DRY.
Re: Goodbye, shitty Car extends Vehicle object-orientation tutorial (2011)
#7I'm a game dev and usually program in C#. I love C# and honestly some features of OO (like objects and classes) are great for programming games. But inheritance is just a shit feature imo. Situations where it would be beneficial are extremely rare . I generally just pretend it doesnt exist. There are much better alternatives to it for most situations (eg. composition, build a class from other smaller classes that do…
Re: Goodbye, shitty Car extends Vehicle object-orientation tutorial (2011)
#8I'm a game dev and usually program in C#. I love C# and honestly some features of OO (like objects and classes) are great for programming games. But inheritance is just a shit feature imo. Situations where it would be beneficial are extremely rare . I generally just pretend it doesnt exist. There are much better alternatives to it for most situations (eg. composition, build a class from other smaller classes that do…
Re: Goodbye, shitty Car extends Vehicle object-orientation tutorial (2011)
#9Re: Goodbye, shitty Car extends Vehicle object-orientation tutorial (2011)
#10> In good OO programming, we don’t make class hierarchies in order to satisfy our inner Linnaeus I wish someone had told me this when I first started coding. I wasted so much time building pointless hierarchies based on ontology rather than DRY.