SOLID – Focusing on Encapsulation

Understanding the encapsulation is easy: your objects and methods must hide the implementation. You have to look at the methods name and understand "what it does" but never "how it does". Rules, variables or instances which are necessary to do what is being done must to be hidden in a method; It helps to reuse … Continue lendo SOLID – Focusing on Encapsulation

SOLID is not About How to Make your Code Beautiful!

SOLID was created because engineers were concerned about code quality and they focused on abstraction, cohesion and encapsulation to reach the quality. But it's not merely about how make code beautiful, actually, they create it because maintenance it the biggest fase of software development and modify a code with a bad design can break it … Continue lendo SOLID is not About How to Make your Code Beautiful!

Princípio do Aberto Fechado

Todo software sofre evolução. É difícil pensar em um software que seja feito e nunca receba algum tipo de manutenção. Então, estamos sempre pensando em adicionar uma nova funcionalidade em nosso software e, sendo assim, pensamos logo em modificarmos o código para acrescentar o que é necessário, mas evitar modificações é uma boa prática. Quanto … Continue lendo Princípio do Aberto Fechado