SOLID principles

Even if you're not an architect, or you don't intend to become one, as a serious developer, you should implement SOLID principles when you develop object-oriented software. In this introduction, we will just briefly look at each of the principles without developing them in detail.

The patterns we need should have the following properties:

  • Loose coupling
  • Testability
  • Responsibility delegation
  • Flexibility

According to Uncle Bob (Robert Martin), the SOLID design principles are as follows:

  • S - Single Responsibility Principle: Objects should each have a single responsibility and a single reason to change.
  • O - Open-Closed principle: Software entities should be open for responsibility, but closed for modification.
  • L - Liskov Substitution ...

Get ASP.NET Core MVC 2.0 Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.