Skip to main content
F439dded582c6bf864503e9205373c4b

SOLID Design Principles in Rails Tutorial Series

In this series, we'll explain the SOLID principles using real-world examples as best we can so you can see how design patterns and principles can affect your code making it easier to read, understand, test, and maintain.

Fallback 11:20
Single Responsibility Principle
#238 · Pro

A class should have only a single responsibility

Fallback 12:04
Open Closed Principle
#240 · Pro

Software entities should be open for extension but closed for modification

Fallback 8:45
Liskov Substitution Principle
#244 · Pro

Subclasses should add to a base classes behavior, not replace it

Fallback 15:21
Interface Segregation Principle
#247 · Pro

The Interface Segregation Principle states that no client should be forced to depend on methods it does not use

Fallback 11:14
Dependency Inversion Principle
#249 · Pro

Abstractions should not depend upon details. Details should depend upon abstractions