Profile
Applications on Symbian OS use a standard set of conventions to name classes (Class), structs (struct), variables (variable), functions (function), macros (macros), enumerations (enumeration), and constants (constant )。 This topic explains
A few nonsense first
What should I say about this game? I like it very much when I see it in the bar and I like it very much at first glance. After playing it, I feel like: the plot is well arranged, and the music is excellent. The only weakness
Preface
Original article: http://websoso.bokee.com/4693792.html
As a fast and efficient development platform, Delphi is used by more and more people, but I am familiar with programmers who embed ASM code in Delphi code.
I don't think much about it,
General rules:1. All names should use standard English words or abbreviations. Do not use Pinyin or pinyin abbreviations, unless the name describes the unique content of Chinese characters, such as halfwidth, fullwidth, initials, and vowels.
2.
1. The quarrel is inappropriate for parents, relatives, and neighbors to give faces to each other in public places. 2. no matter who is right or wrong, as long as there is a quarrel, the man must gently coax the woman once, the woman can
The following rules outline the interface naming rules:
Use nouns, noun phrases, or adjectives describing behavior to name interfaces. For example, the interface name icomponent uses a descriptive term. The Interface Name icustomattributeprovider
. NET Framework developerRefer to the followingArticleName namespaces, classes, objects, methods, attributes, and parameters:1) Guidelines for names
Http://msdn2.microsoft.com/en-us/library/ms229002 (vs.80). aspx
2) msdn2005 Simplified Chinese
1. PackageAll letters are in lowercase. Hierarchy, separated by periods. Com. Sun. medialib com. Sun. jdi. Event
2. Classes and interfacesThe first letter of each word is capitalized. Using a noun or noun phrase, the timer bufferedwriter interface
2. Abbreviations of the same attribute:The same attribute can also be abbreviated based on its attribute value, for example: The code is as follows:Copy code . Search {Background-color: #333;Background-image: url (../images/icon.gif );Background-
It is important to carefully observe the parameter naming conventions. Visual Design tools that provide context-related help and class browsing functions will display the parameter names of methods to users in the designer. The following rules
Fortunately, I have seen this before.
The division of the moving phase is used.
K = x/y B = x % Y then x = Ky + B
If an integer can divide X and Y at the same time, it must be able to divide B and Y at the same time, and the number that can
◆ Hungarian naming law
The basic principle is:
Variable name = property + Type + Object Description
(1) attributes:
Global variable: G _
Constant: C _
Class member variable: M _
(2) Type:
Array:
Boolean: B byte:
CHAR: C Byte
I only speak for c ++ programmers. Other languages are not familiar with, but they should be similar. Once upon a time, I opened my 21-day Beginner Books on c ++ series, all of which were presented by the Hungarian naming method (DWORD dwXXX, int
In this case, the attribute name contains keywords.
You can solve this:
Renaming that property:@property (strong, nonatomic) NSString *theNewTitle;
Keeping the property name and specifying a getter name that doesn't begin with one of the special
1. Use Pascal rules to name methods and types. Pascal case indicates the first letter of a word in the name in uppercase.Public class DataGrid{Public void DataBind (){
}}
2. Parameters for naming local variables and methods using Camel rules. camel
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.