Preview

Solid Case Study

Clean Code: SOLID Principles, Episode 14

Robert "Uncle Bob" Martin
43 minutes • 1.00GB • Sep 2012

OK, this one's a little different. No science lesson. The tone is a bit more serious. (But, only a bit.) It's the conclusion to the series on the SOLID principles. In this episode we look again at the Payroll Example from Episode 7, but this time we do so in the light of the SOLID principles.

In this episode we start from use cases, and work through each of the principles to create a design. We break up the use cases by using the SRP. We start to build the architecture using the OCP. We find LSP issues to solve in the complex polymorphism hierarchies. We find the ISP lurking in factories. And, of course, the DIP is everywhere.

As we walk through this case study, we examine each principle in depth. We allow the principles to illuminate issues in the design, and then we discuss several ways those issues can be addressed. Bit by bit we piece together the design.

Then we close by taking a lesson from Joel Spolsky when he criticized these principles several years back, without really knowing what they were.

So sharpen your pencils, you're going to need them, because this is an in-depth review and case study of the SOLID principles.

Robert "Uncle Bob" Martin

Robert "Uncle Bob" Martin

A software professional since 1970, Robert has spent the last 40 years contributing toward the betterment of the field, from kickstarting the Agile Alliance to authoring landmark books about Agile Programming, Clean Code, and more.