2 ms·
"Two main errors were committed: "• Violating the substitution principle. A procedure that worked with objects of a class no longer worked with objects of a su
by mcguire 8y ago
"Two main
errors were committed:
"• Violating the substitution principle. A procedure that worked with objects of a class
no longer worked with objects of a subclass. As a result, many almost-identical
procedures needed to be written.
"• Using subclasses to mask bugs. Instead of correcting bugs, subclasses were created
to mask bugs, i.e., to test for and handle those cases where the bugs occurred. As
a result, the class hierarchy was very deep, complicated, slow, and filled with bugs."
That's a good question. I can think of several candidates, but none that match the specific problems.