Write Java has been written for 12 years, the outstanding self is a master, but also experienced some changes. In general, Java can be divided into several levels:
The first is the level of demand understanding, this level of coder can understand the requirements, the need to translate into code;
The second level is the single test, can be written out of the code for testing, a few elements: construct input, call service, get output, test output. The primary single test only tests the simplest logic, the complex single-measurement can test anomalies, boundaries, and other complex logic.
The third level is the specification, naming, annotation, need to be able to conform to the specification. Code that conforms to the specification looks more professional and does not make people feel amateur.
The fourth level is readability, the code to be readable needs to meet some conditions, reasonable structure, naming reasonable, and the rationality of annotations. The reasonable structure is to abide by the solid principle, the name is reasonable, the name of the word is accurate, the meaning is consistent, the meaning and the code is consistent, the annotation is reasonable, requires meaningful comments, not redundant, not missing.
The fifth level is logically rigorous, the code needs to consider a variety of situations, not only to deal with the expected situation, but also to deal with exceptions, boundary conditions and so on.
The fifth level around the use of code, code needs to be operational, need to be called by others, it needs to be called more easily, easy to maintain, need detailed log, wrong throw, automatic retry, etc.
The sixth level needs to consider the prevention of leaks, performance optimization. You cannot use unreasonable loops, use caching, thread pools, and so on to improve system performance.
The seventh level, considering changes, there are many ways to consider changes, the use of configuration files, the use of design patterns is to support the change of methods.
Technorati Tags: java,code, skill levels, level
Level of Java Coder