News for hackers. Stuff that matters.
Re:Inheritance Often Doesn't Make Sense by waibelp on Saturday March 17, 2018 @07:25AM (#16606498)
Nice article.

Worst thing I've ever seen was a class which inherited another just to keep the lines of code short (<2500). That said it wasn't just one time inheritance... It was up to four times. There was no logical split of the inheritance. It looked like someone simply split one huge file into some smaller ones.

We called that kind of inheritance "code sharding" and we had a lot of headache at that time.

There are no comments on this comment yet.