Main Content

Refactoring to a S.O.L.I.D. Foundation

A talk by Steve Bohlen

About the Talk

July 19, 2011 2:30 PM

630 Kenmoor Ave SE, Suite 201, Grand Rapids MI, 49546

630 Kenmoor Ave SE, Suite 201, Grand Rapids MI, 49546

In this session we take a small, functional but tightly-coupled, software solution and improve its design using each of Robert C. Martin's S.O.L.I.D. principles as follows:

SRP: Single Responsibility Principle | OCP: Open-Close Principle | LSP: Liskov Substitution Principle | ISP: Interface Segregation Principle | DIP: Dependency Inversion Principle

Each principle is applied in sequence to the existing solution, making it possible for the attendee to observe the principle in relative isolation first while also evolving an understanding of how the principles all collaboratively reinforce each other when applied together.

Before each principle is applied and the solution is refactored to introduce it, the attendee is presented with one or two simple PowerPoint slides to introduce the concept and provide some abstract understanding of its goals and benefits to OO programming. The principle is then applied to the existing solution, demonstrating the practical application of the principle to working software.

At each step along the way, the existing solution (a simple console application) is re-executed, demonstrating that the overall behavior of the software solution has not been negatively impacted by the various refactorings.

Ratings and Recommendations

Avg. Rating

Average based
on 2 ratings

comments powered by Disqus