Single Responsibility Principle
Single Responsibility Principle aka SRP — the first one in the SOLID principles — in my opinion, is one of the important ones to create modularised and readable code. As Sandi Metz mentioned in her book Practical Object-Oriented Programming in Ruby [popularly known as the…