i: Represents an integer int (it is an integer type in number)
fl: Represents float float (it is a decimal type in number)
b: Represents a Boolean Boolean
a: Represents an array of arrays
o: Represents object
fn: function functions are not shown
re: Indicates regular regular expression
For more details about naming Hungary, click here to read.Hump Naming methodWhen the variable name and function name are linked together by two or more words, and the unique ident
You don't have to work overtime today. Come back to watch movies and listen to songs. A long-planned blog has finally ushered in the first meaningful article today. I have read some articles on the Internet, but I am not writing well. I will try again.
In fact, there are many naming rules, which can be clearly understood. Here we will briefly introduce three naming rules: Hungary, Pascal, and camel:
I. Hungary naming convention: It is widely used in
ArticleDirectory
1.10 database naming
1. Naming Conventions Pascal and camel naming conventions There are two naming methods for programming: Pascal and camel (Pascal: the first letter of each word is capitalized, for example, producttype; CAMEL: the first letter of the first word is lowercase, and the first letter of other words is capitalize
leaning to the "left") would execute a external program and return the output of the "program", so Can capture it as a single string containing all the lines of output.$answer = 42; # an integer
$pi = 3.14159265, # a "real" number
$avocados = 6.02e23; # scientific notation
$pet = "Camel"; string
$sign = "I Love Me $pet"; # string with interpolation
$cost = ' It costs $ '; # string without Interpolati On
$thence = $whence; # Another variable ' s value
In our previous blog post, we built the entire operating environment of OSGI and integrated the other individual components into the subsequent development, and this podcast series will write all of example in Apache Felix's official website and then write the following OSGi articles, such as OSGi command , Blueprint,configadmin and so on, these aside for the time being, later on to write blog post.Example ModuleIn the last Maven project, the new folder was named Application, and the application
Printemployeepaychecks ();
Print_employee_paychecks ();
Copy CodeThe first function name uses camel-named notation-each logical breakpoint in the function name is marked with an uppercase letter, and the second function name uses the underscore method----each logical breakpoint in the function name is marked with an underscore. Camel-style nomenclature has become more and more popu
Whzeng@126.com
1. reasonable and appropriate commentsReasonable and appropriate comments are a good way to increase code readability, but comments for comments are a waste of time.2. simple and efficient namingThere are generally three naming rules: Hungary naming, camel naming, and Pascal naming.2.1 Hungary naming lawIt is widely used in environments like Microsoft Windows. Variables used in Windows Programming (including macros)The naming rules of
Task plot
Condition: ≥ 60 level.
Pick: Automatically get (before completing the main line)
Task process
Bai jingjing → Xuanzang → beat wine and meat monk (suggested team fight) → Xuan Zang → Hui Ming → The Elders → find Front → beat the Tiger (fight) → Monkey fairy → hou Medical fairy → law ming elders → Xuanzang.
Task Difficulty
Wine and Meat Monk 1
Enemy lineup (starting from the back, from left to right, then to the front): Underworld, Putuo Mountain, Dragon Palace, Putuo Mountain, Li
, our coding efficiency will be much lower. We must standardize our naming, let us more professional!
Today we introduce three kinds of naming rules on the basis of previous knowledge. These three naming conventions apply not only to the CSS and HTML encoding described above, but also to other types of programming 52css.com. They are: Camel nomenclature, Hungarian nomenclature, Pascal nomenclature. Below we give the introduction separately:
In the previous work did not pay attention to their own naming norms, now according to the hump name strict requirements for themselves:
The relevant definitions are as follows
Basic ConceptsCamel-like nomenclature (also called Hump nomenclature), as its name CamelCase implies, refers to the mixing of uppercase and lowercase letters to form the names of variables and functions. Programmers in order to their own code can be easier to communicate between peers, so more than a unified readability
coding efficiency will be much lower. We must standardize our naming, let us more professional!
Today we introduce three kinds of naming rules on the basis of previous knowledge. These three naming conventions apply not only to the CSS and HTML encoding described above, but also to other types of programming webjx.com. They are: Camel nomenclature, Hungarian nomenclature, Pascal nomenclature. Below we give the introduction separately:
Story OnePeople who have been to the temple know that one enters the temple door, the first is the Amitabha Buddha, the smiling face welcomes the guest, but in his north, is the ease black Wei Tuo.But it is believed that long ago, they were not in the same temple, but separately in charge of different temples. Mi-Lok Buddha warm and happy, so many people come, but he does not care about anything, lose three pull four, no good management accounts, so still make ends meet. and Wei Tuo Although the
Summary of naming rules for C ++, Java, and C #Preface
Since C ++, Java, and C # are often used as development languages in development work, naming conventions often cause some problems to me. On the one hand, naming conventions do not have the only standard answer. On the other hand, although there is no fixed form of naming conventions for languages, the three languages have different styles and have their own unique characteristics. CompileCodeThe naming method used in the process is often
reference value (colorref)CX, Cy Coordinate Difference (length shortint)DW double wordFN FunctionH handle (handle)I integerL long integer (long INT)LP long pointerM _ class memberN short INTEGER (short INT)NP near pointerP pointerS string typeString type ending with null in sz (String with Zero End)W Word
Ii. Camel naming:
The camel-style command method, as its name indicates, refers to the name of a varia
: prefix type a B by C CB CR Cx,cy DW fn h i l LP m_ n NP p s sz w Array (Array) Boolean value (Boolean) byte (byte) signed character (Cha R) unsigned character (Char Byte, not many people used) color reference value (COLORREF) coordinate difference (length shortint) Double Word function Handle (handle) Integer long integer type (long Int) The length of the Pointer class short int, near Pointer Pointer string type with null-terminated string (string with Zero end) WordSecond, the
CSS selector naming and common namingCSS selector naming and common namingSpecification naming is also an important part of the Web Standard, the standard naming can make the code more readable, and conducive to search engines, such as the definition of two Div, an id named "Div1", the other named "News", is certainly the second more readable, and the search engine crawl rate is higher, In the team work can also greatly improve the efficiency. In order to achieve this effect we need to normalize
PointerMembers of the M_ classn short integer (shorter int)NP near PointerP PointerS-stringSZ null-terminated string type (string with Zero end)W WordIi. Camel Nomenclature: (Camel method)Camel-like command, as its name implies, is a mixture of uppercase and lowercase letters to form the names of variables and functions. For example:printEmployeePaychecks ();//
I. Common naming conventions (1) Hungarian nomenclatureThe more famous naming conventions are the Hungarian nomenclature, but the nomenclature is a disaster for cross-platform porting. This naming method was proposed by Microsoft programmer Charles Simonyi Charles Simonyi. The main idea is to "add prefixes to variables and function names to improve people's understanding of the program". The key to the Hungarian nomenclature is that the name of the identifier is prefixed with one or more lowerca
)
CR Color reference value (COLORREF)
Cx,cy coordinate difference (length shortint)
DW Double Word
fn function
H Handle (handle)
I integral type
L Long Integer (Long Int)
LP Long pointer
Members of the M_ class two, camel nomenclature:
Camel-style command, as its name implies, refers to the combination of uppercase and lowercase letters to form variables and function names. For example, the following is the
One is the celtix of the Object Web: it was originally a commercial software, because it was not sold well, so it was transferred to the ow to increase awareness.
The second is ServiceMix of codehaus: It is truly compatible with the jsr208 jbi standard ESB container. Its main features include:
Jbi container
Script support
Rule Engine
Workflow Engine
BPEL Engine
Web Services notification implementation
The third is the mule of codehau
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.