Sunday, August 24, 2014

Clean Code - Social Act

How many times as programmers we have felt perceived like solitary people who are working in front of the computer, maybe sometimes we accept that because our code is something we can create alone or seeking resources from the Internet. Nothing further of reality when we are working in a team.

The act of programming


The developer creates or modifies other existing code and adapts the functionality to implement. The programmer thinks in the best way to make its code understandable to help to someone else to understand rapidly what it does and the changes will be more accurate. The programmer is not a solitary entity, it works with other people's code. Programming is a social act. In that way is presented the art of develop Software in the book "Clean Code".

Communicate


The book, or bible of programming for others, focuses in facilitating communication of the code's intention, with its functions, classes, variables, etc., Why is that so important? Because nothing guarantees that the same developers will work in the same piece of code, it can be assigned other task or is not longer part of the company. In Software, the code is one of the best documentation that someone can leave and it has a purpose, a reason to exist, and it is better to communicate it easily being coherent.

Fundamentals


The book recommends as must be formed a class, the best choices of names, variables, functions size, levels of abstraction, principles of responsibility, and others. It explains why small is better, helps to choice appropriate names and the importance of provide it with a common format code, the author makes strong criticism of the code comments that explain something that can not be done by itself,  in addition to provide a lot of heuristics that serve as a guide in the moment of codify.

Recommendations


The author does not ignore the design. Add or change code, however small it is, it has a grade of impact on the design of the system and condition its evolution. The author also covers principles that help to make a work of a professional developer, something serious and trusted with value, all our coworkers surely are going to thank it, because will not be a headache read this compass lines that follow an identical rhythm at the programmer reader. There is not to forget that we are in front of recommendations and many of these are questionable or even open to improve, applicable according to criteria.

The book follows the premise that the Software codified evolve, its complexity grows, and unless you are the first writing code, you have to understand what the existing code does, and that takes time. Programmer is talking to oneself and with other developers, a common language, conventions and fluency are fundamentals to achieve a good communication.

No comments:

Post a Comment