SRP - The Single Responsibility Principle in 5 minutes

Following on from my quick overview of the SOLID principles I thought I'd put together a quick overview video for the Single Responsibility Principle SRP. For a much more detailed and frankly much more entertaining talk on SRP checkout out Uncle Bob's CleanCoders website.

Of all the SOLID principles SRP is probably the most important, it's the one that's probably had the greatest impact on the way I write code. It can lead to class explosion in a project but is that necessarily a bad thing?

The SOLID Principles

  • SRP - Single Responsibility Principle
  • OCP - Open Closed Principle
  • LSP - Liskov Substitution Principle
  • ISP - Interface Segreation Principle
  • DIP - Dependency Inversion Principle

blog comments powered by Disqus



The opinions expressed herein are my own personal opinions and do not represent my employer's view in anyway.

© Copyright 2015