Now, it would be fair to say that the inheritance hierarchy here is badly designed, wrong, doesn’t actually make sense, and has nothing to do with object-oriented programming in the first place anyway. Also, wasting the 8 bytes of the width and height properties is meaningless in the grand scheme of things and thus the larger waste of time is thinking about this whole issue at a all. And maybe it is, but that is not a universal truth: this is engineering, and it is all about trade-offs. In a real-world inheritance hierarchy you’ll probably find that much more memory is being wasted, and the effect of it is not insigificant. At some point you’ll find that the cost of not thinking about this issue is too high to bear.
Yet they couldn’t find a better example for their rant about how awful it is.
I have found this blog post to be a waste of my morning time.
Yet they couldn’t find a better example for their rant about how awful it is.
I have found this blog post to be a waste of my morning time.