Level of Java Coder

Source: Internet
Author: User

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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.