Clean Code: The Rectangle and the Square – Part I
In my Clean Code class, I go through this example about the Liskov Substitution Principle (LSP), part of the SOLID material. This example, the rectangle and the square, never fails to stump people, both experienced and less so. It starts out with the question: Is a square a rectangle? Which of Read more…