preface

The internal logic of different things has a lot in common.

The body of the

If you have an iPhone, you may know that there is a beautiful APP called “Daily Palace Museum”. I like this APP very much. There are many beautiful pictures of the Palace Museum relics and the introduction of the background knowledge of the relics. If you have been paying close attention, you may have noticed from the APP’s introduction of cultural relics that the Palace Museum’s cultural relics are named in a regular way. Take these two examples:

Green space powder enamel banana leaf flower pattern bottle

Blue and white red and green color chicken crane ganoderma grain girder pot

Don’t look out, here is the rule: frank, complete, that is to say, naming can be extracted by simple words out most of the key characteristics of the target object, through the name of the tutoring to contrast images, the observer can easily to find the key attributes of the target object, symbolization and rapidly build up in your mind. This is very efficient for the dissemination of cultural knowledge.

In the same way, in our work, for a variable or method or class name, also need to be blunt, complete, can through the variable naming, the method of the current variable, or class semantics is roughly passed to the user (about this case, please remember the naming in Jdk libraries, and the name of the Spring), Users can provide semantic based on naming, roughly know the current the current this variable, method or class should be how to do, at the same time, if users need to understand the implementation details, names should also be able to give the user a directional guidance for understanding the implementation details, so for users, is efficient.