Single responsibility principle is also known as SRP is a computer programming principle that consists of classes, functions or modules that can’t have more than one responsibility.
Tag Archives: Object Oriented Programming
Yet, another post about tell don’t ask
Tell, don’t ask is a useful key concept when talking about object-oriented programming, it consists in send messages to object (whenever possible) telling object what you want and that we shouldn’t ask questions to it about its state and make decisions for him, it bypass encapsulation.
Demystifying Linked Lists / Complete tutorial/implementation with TDD
Let’s code a linked list in Ruby with TDD.
Understanding Law of Demeter
When studying object-oriented programming and good practices, Law of Demeter is one of the rules that you usually learn.