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!

SOLID – Focusing on Abstraction

I think I've never written about SOLID Principles here, in my blog. So, I will do it trying to be simple, and focusing on abstractions. Single Responsibility Simple, a classe must have only one responsibility. A classe or interface must be cohesive. DIP - Dependence Inversion Principle Each modifications in a class is propagated to … Continue lendo SOLID – Focusing on Abstraction

Can not perform this action after onSaveInstanceState

I've faced this problem sometimes but I've never written about it. It's very interesting because it proves that the Android avoid at all costs lose the state of the activity. This error commonly happens when you try to commit a fragment transaction after the onSaveInstanceState() be called, in other words, when you do it in … Continue lendo Can not perform this action after onSaveInstanceState