Encoding Specification | Java function elegant way (on)

REVIEW

With the software project code over time, system maintenance costs become higher and higher, is a common problem faced by all of the software team. Continuously optimized code, improve code quality, it is one of the effective means to enhance the vitality of the system. Software systems thinking there is a saying "Less coding, more thinking (less coding, more thinking)," there are so many slang "Think more, code less (more thinking, the less coding)." So, we think more and more sum in coding, coding efforts to upgrade their level, in order to write more elegant, more quality, more efficient code.

This article summarizes a set of Java-related function of encoding rules, designed to give the majority of Java programmers some coding suggestions to help you write more elegant, more quality, more efficient code. This set of encoding rules, by practice in high German collection sector has achieved good results.

Using a common tool function

Case number one

Symptom:

Imperfect wording:

thisName != null && thisName.e

Guess you like

Origin yq.aliyun.com/articles/713190