2026-06-02 21:00 UTC
sometimes i find it funny that I learned about how inheritance works in object oriented programming in university when really the practice I've settled on for myself is "never implement code sharing with inheritance" which would have been a lot shorter
(i feel like there's a whole story about the history of inheritance out there that could be very interesting to read though)
Replies (1)
-
@kae_bytheocean@slime.global 2026-06-02 21:09
@b0rk@social.jvns.ca it always disappointed me how much OOP harps on "composition over inheritance!", but all the OOP languages make inheritance easier than composition. (Except for Kotlin and I can only assume the various lisps)