News for hackers. Stuff that matters.
Re:Cognitive loads in programming by neeleshs on Thursday September 01, 2022 @12:31AM (#32672024)
+1 for this list. Choosing composition over inheritance is generally a good idea, but if the language doesn't support declarative/automatic delegation, building good compositions becomes tedious. Still, inheritance, when used for code reuse, breaks LSP (https://en.wikipedia.org/wiki/Liskov_substitution_principle) and the problems typically manifest, months or years down the line when you try to extend such areas of code

There are no comments on this comment yet.