A guide to SRP, Open/Closed, Dependency Injection, Interfaces, Unit Testing and Mocks

Damien Hampton
26Brains
Published in
1 min readJan 12, 2017

This video is a guide for developers to help them understand what changes need to be made to code to make it testable and sustainable. It uses parts of the SOLID principles to refine an example class.

Topics covered:

  • Single Responsibility Principle (SRP)
  • Open/Closed principle
  • Dependency Injection
  • Interfaces
  • Unit Testing
  • Mocks

Originally published at 26 Brains.

--

--