We often complain that it is difficult to read other people's code, and when we write the code ourselves, do we consider how to make the code easier to read and maintain?
We should consider how to make the code easy to read, like the dialects of different regions, the local people feel easy to understand, but outsiders often do not know its cloud, in order to let everyone can communicate, only the production of Putonghua. So code writing should also have a relative standard to facilitate reading for yourself and others.
The ease of maintenance of the code should be considered. When we start writing code, we usually don't take all the functions into account, which requires the continual modification of the latter. If our code is not easy to maintain at this point, it can cause a lot of trouble, and it may end up needing to be rewritten by throwing away the existing code. In the code before the need to consider these issues, can refer to the following aspects: the general direction of the modular design, medium-oriented design patterns, the details of multi-annotations, pay attention to variable naming and so on.
Modern software engineering fifth week work