takes up to 4 bytes.
Routed packets may also be lost during the transfer process. As a result, people use the underlying transport protocol to determine whether or not data is transmitted correctly. For example, TCP is used to check for errors or data loss, and when an error occurs, the corresponding database is sent again until the other host is properly received.
Currently, there are 3 categories (or 3 levels) of IP addresses: Class A,
Variable naming rules are designed to enhance the readability and ease of maintenance of your code. The following are the variable naming conventions that C + + must follow:
1. variable names can only be letters (A-Z , A-Z ) and Numbers (0-9 ) or underline (_ ) composition.
2. The first letter must start with a letter or an underscore.
3. cann
In the learning time will be forgotten each time the class, module, function whether the first letter is uppercase or lowercase, this document is for memory use, complete naming specification please refer to other network documentsExample: http://book.douban.com/reading/10700087/1. Package, naming specification for modulesAll lowercaseFilename:pythonmodule.py2.
Naming rules for packages, classes, methods, properties, constants in Java1: Package: Used to classify classes that do different functions, put them under different directories (packages), and package naming conventions: reverse the company domain name as the package name. For example, www.baidu.com for package name: each letter needs lowercase. For example: Com.
Google Open source project style guide: http://zh-google-styleguide.readthedocs.io/en/latest/reference: http://www.cnblogs.com/zhanglianbo/p/ 5664997.html namingModule_name, Package_name, ClassName, Method_name, Exceptionname, Function_name, Global_var_name, Instance_var_name, Function_parameter_name, Local_var_name.Names that should be avoided
Single-character names, in addition to counters and iterators.
Hyphen (-) in Package/module name
A name that begins and ends wit
Python source code and some other books, naming a variety of personalities, not a more uniform naming conventions. So I summed up some, for reference.Module Name:Lowercase letters, dividing between words with _ad_stats.pyPackage Name:Same as the module nameClass Name:Capitalize the first letter of the wordAdstatsConfigutilglobal variable names (
1. Page name:Login LoginRegistration RegisterUsers userCreating CreateModify UpdateRemove DeleteQuery Selete controller Controllers user name Username Password PasswordThe JSP page is named lowercase, and it is recommended to use lowercase. such as: product_list.jsp or productlist.jspif the English is not very good, then use Pinyin first letter or complete Pinyin name: or take translation dictionary to check. (multiple words are suggested to be separated by "_"), generally do not exceed 20 byt
operation of subclasses, you can use the protect to encapsulate the properties, so that the external cannot see directly After the inheritance, since there is a father-son relationship, so you can use an upward-downward transition to complete polymorphism, but there is not much direct inheritance between classes and classes in development, often inheriting abstract classes or implementing interfaces, which can be accomplished when several small operations require decoupling. Since there are inn
Name of function:• Refer to the naming conventions for Windows APIs.• It is recommended to use the movable-object structure. Function names should clearly reflect the function and purpose of the functions.• The function name must be no longer than 30 characters.• The first letter of the function name must be capitalized.• The global function must begin with a lowercase prefix "g".4. Variable name:In princip
1. Class name, Interface name: Capitalize the first letter of the first word. If you have more than one word, capitalize the first letter of the other word.2, Package name: all lowercase.3. Variable name, method name: The first letter of the first word is lowercase. If you have more than one word, capitalize the first letter of the other word.4, constant name: all uppercase, if there are more than one word, then use an underscore connection.Ps:The
HookTaskType HookTaskType Meta string `xorm:"TEXT"` // store hook-specific attributes LastStatus HookStatus // Last delivery status Created time.Time `xorm:"CREATED"` Updated time.Time `xorm:"UPDATED"`}
Variable Naming conventions
Variable names generally follow the Hump method, but when you encounter a particular noun, you need to follow these rules:
If the
Date Created* @version 1.00*/2. attribute CommentYou must precede each property with a property comment, and the comment template is as follows:/** Tip Information */Private String STRMSG = null;3. Method CommentYou must add a method comment before each method, and the comment template is as follows:/*** Detailed instructions for using the class method** Instructions for use of @param parameter 1 parameter 1* @return A description of the return resul
about naming conventions: 1, literally. The name is meaningful and can express meaning. 2, avoid misleading, avoid giving misleading elements, such as xxxlist. 3, make a meaningful distinction, avoid using product,product info and productdata at the same time. All the crap is redundant. 4, use the read-out name. 5, use a searchable name. mainly for constants. 6, avoid using encoding. Avoid using prefix
The normative of the page element name helps the communication among members of the team, but also can improve the later maintenance, the page element is named mainly for the ID and class, there is no industry standard for the naming of the page element, but there are some universally accepted rules.In general ID we usually use the CamelCase naming convention (fi
Naming conventions5.1 rules that are common to all identifiersIdentifiers can only use ASCII letters and numbers, so each valid identifier name can match the regular expression \w+.Special prefixes or suffixes used in other Google programming language styles, such as name_, Mname, S_name, and Kname, are in the Java programming styleNo longer used.5.2 Rules for identifier types5.2.1 Package NameThe package name is all lowercase, and successive words ar
1. Variable name
Type
Naming conventions
Example
Member variables
M_
int M_nvalue
static variables
S_
int S_nlength
Static member variables
Sm_
char* Sm_strname
Global variables
G_
int G_nvalue
Boolean variable bool
B
BOOL Bstate
naming rules for C # identifiersThe variable name, constant name, class name, and method name in the program are called identifiers . C # has a set of naming rules for identifiers, and errors occur if you do not follow the rules when naming them. This set of rules is simply said to have the following three articles:① i
Canonical naming to avoid low-level problems
1. The best name is English characters, underline _, the number of three components
2. Project (Project) name, package name, module name, etc. should be in English beginning, not pure numbers , (the general has a special meaning at the beginning of the underscore, do not understand the use of chaos)
3. The name of the script cannot be duplicated with the system's module or third-party module (e.g
1 package, module naming rules: All are named in lowercase letters. For example: Import random2 class, object naming rules: classes are capitalized on the first letter of each word, other lowercase letters such as: Class MyFamily:, private properties of the class, private me
Java Naming Conventions-general Linux technology-Linux programming and kernel information. For details, refer to the following section. What are Java Naming Conventions?
Answer: 1. Use the complete descriptor to accurately describe variables, fields, or classes.
For example, the name can be FirstName, GrandTotal, or
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.