Home > front end >  Code specification
Code specification

Time:10-01

Constant named all caps, separated by an underscore between words, makes every effort to complete clear semantic expression, don't be too long name,
An Abstract class named using the Abstract or Base opening; Exception class named end use Exception; Test class name begins with it to Test the name of the class, and ends in the Test, put an end to completely non-standard abbreviations, avoid looking at wen I don't know just if you use the design patterns, and advice in the name of the class reflects the specific patterns,
Service/DAO layer method named code
1) for a single object method using the get to do the prefix,
2) method for multiple objects made from the list prefixes,
3) to obtain the method of statistics made prefix, count
4) insertion method using the save (recommended) or insert prefix,
5) delete method using the remove prefix (recommended) or delete do,
6) modified method made the prefix update,

CodePudding user response:

  • Related