1.1. Formal parameter naming recommendationsThe name of all formal parameters should be used to express its purpose. If appropriate, the name of the formal parameter should preferably be prefixed with the letter A, for example:Procedure Someproc (ausername:string; auserage:integer);Prefix A is necessary when the parameter name has the same name as the attribute or field of the class.1.2.
Package, class, interface, enumeration type, parameters, constant fields, methods and exceptions;1. Naming of packages (package)The package name should be in full English descriptors, which are made up of a lowercase word. And the prefix of the package name is always a top-level domain,Usually com, edu, gov, mil, net, org, etc.;such as: Com.yjhmily.test2. Naming
variables are:Double pointer: "PP" + variable type prefix + nameTriple pointer: "PPP" + Variable type prefix + name......③, global variables start with g_, such as a global long variable defined as G_lfailcount, that is: variable name =g_+ variable type + variable's english meaning (or abbreviation)④, static variables start with s_, such as a static pointer variable defined as S_PLPERV_INST, namely: variable name =s_+ variable type + variable's english meaning (or abbreviation)⑤, member variabl
: Xmlexample, One more naming technique is that because a class is designed to represent an object, you should choose a noun when you name the class.For example: GraphicsName of method (first letter lowercase, letter start uppercase)The first word of the name of the method should begin with a lowercase letter, and the following words begin with a capital letter.Example: DrawImageName of the constant (all up
blockAdd comments before each major part of the block, explaining the purpose of the group statement, preferably explaining the purpose of the statement and the algorithm and the results to be obtained, but do not describe too much of its details4.2.5 You can also add information such as the database you want to access in the comments at the beginning of the block and procedure4.3 Writing specifications for common SQL statements4.3.1 Create statement
CREATE TABLE dft_dksz(YHBS V
One, Java file naming specification1. Package NameThe name must all be in English lowercase letters, prohibit the use of "underline" characters. (in addition to constants, the use of underscore characters is not recommended in Java naming conventions)Project package naming rules:2.
Data file namingMode 1: Data file naming takes system name +_+ file type. mdf, such as system name Comsys, the database file is namedComsys_database.mdf, there are several database files, such as SQL Server has 2, one is the database textAnd the other is log files, then their files are named Comsys_database.mdf, Comsys_log.log, respectively.Mode 2: If the database takes a file system instead of a bare device, contract the following
to understand and master a programming language, I think it is important to master its naming rules. No rules. Inadequate surrounding area, programming is the same, not only you can understand, others should also be able to understand your code, it is necessary to master the language of the naming rules. From the programmer to write the code used by the naming ru
Some design and naming conventions in database development 2011-03-21 13:41 Great white sharks. Blogfont Size:T | T Database development involves many aspects of the content, this article will introduce a part of you, I hope you can harvest what you need. Ad:51cto Net + the first App innovation contest hot Start-----------super million resources for you to take! Before we have introduced a part of the dat
Concise Summary Multiple Write notesI. About naming conventionsThere must be a unified specification for development projects, but what are some of the naming conventions that need to be done?A: First, it cannot be anti-human . Come again is, want to look at the text and know its meaning .Here's how to regulate our code in detail. How to name? 1) JAva
= (channelbinding) obj;Return Arrays.equals (AppData, cb.appdata);}}Four other writing Specifications 4.1 JSP page name writing specification1. All use lowercase English characters and "_ " composition. 2. The whole takes the form of module name + operation. such as: user_view.jsp3. The JSP page corresponds to the action's meaning as much as possible, such as the userlistaction counterpart user_list.jspInterface:Use hump-style naming. In addition to
contains a word abbreviation, each letter of the word should be capitalized, such as: Xmlexample, One more naming technique is that because a class is designed to represent an object, you should choose a noun when you name the class.For example: GraphicsName of method (first letter lowercase, letter start uppercase)The first word of the name of the method should begin with a lowercase letter, and the follo
catalogueFig. 3. Core Edition DirectoryIf we open the entire directory to see the content below, if 4Figure 4: Full CatalogHere we can see the other files directory, fortunately, the author in addition to the framework directory thinkphp in other directories have put a readme.md file to tell us what this directory is to do,1.Application: Project directory2.Public: Resource files directory, should put Css,js and pictures3.ThinkPHP: Frame directory, th
Java Naming Conventions and code stylesJava Naming Conventions and code styles
Basic naming rules package name
The package name is listed gradually based on the domain name range, which is the opposite of the domain name naming ru
Database Naming Conventions
1 Purpose
A naming convention that regulates the various objects of a database.
2 Database naming principles
2.1 Data Files
If the database is based on a file system rather than a raw device, the following naming
conventions for these variables are basically the same, as shown in the identifier case comparison table. The difference is as follows:
The public variables of Class I are named in the usual way without special requirements;
The private variables of class Ii. can be used in two ways: adding "M" prefixes, such as mworkername;
Iii. The parameter variables of the m
1. ClassThe class name is capitalized in the first letter of each word, such as the class name Studentcourse.2. ConstantsThe constant name is all uppercase letters, the words are separated by underscores, and the usual names are null, TRUE, FALSE, Root_path, and so on.3. VariablesIn order to ensure the good readability of the code, general requirements in the same software system, the
The naming conventions are followed primarily for the developer to be easy to understand and maintain consistency with the framework elements.
Casing conventions
Casing rules for identifiers: In order to differentiate multiple words in an identifier, capitalize the first letter of each word in the identifier. Do not underline, or use underscores any
Many naming conventions are related to the case of identifiers. It is important to note that the common language runtime (CLR) supports case-sensitive and case-insensitive languages. The casing conventions that are described in this topic help developers understand and use libraries.Case styleThe following terms describe the different casing forms of identifiers.
this!Array declarations should be prefixed. For example:Int[] table;String[] args;2. class or interface declaration1) The "{" and declaration statements are on the same line.2) If it cannot be displayed on the same line, then "extends" or "implements" are split and placed after two indent levels.3) The "}" symbol should be on its own line.For example:public class ChiefexecutiveofficerExtends ManagerImpleme
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.