Discover file naming conventions best practices, include the articles, news, trends, analysis and practical advice about file naming conventions best practices on alibabacloud.com
Reference effective Objective 2.0 item use clear and consistent naming recommendations1. Method Name: Apply the Hump nomenclature, methods name should be able to show how the method is doing, do not worry about the name process, because when used, Xcode will automatically complete-If methods returns a value, the method name should indicate what the value-Do not use abbreviations-For Boolean property, plus is or has prefix-Do not use the Get prefix-The
Common naming conventions for CSS class, ID, and CSS file names(i) Common CSS naming conventionsHead: HeaderContent: Content/containerTail: FooterNavigation: NavSidebar: SidebarColumn: ColumnPage perimeter control overall layout width: WrapperMiddle: Left Right centerLogin Strip: LoginbarLogo: LogoAd: BannerPage body:
File naming rules(1) All characters are legal except/(2) Special characters such as @, #, ¥, , () 、-、 spaces, etc. best not to use, when the use of space as a file name, the execution of the command error;(3) Avoid using "." As the first character of the file name, because the "." is used in the Linux system. The
Matlab File Naming conventions1, the name of the file to use English characters, the first character can not be numbers and underscores.2, the file name is not taken as an intrinsic function of Matlab, the name of the M file name try not to be simple English words, preferabl
Dependency Management (Dependency Management) and Naming conventions (naming conventions) Dependency Management and Dependency injection (Dependency Injection) are different. to bring Spring 's excellent features, such as dependency injection, to your application, you need to deploy the required libraries (jar packages
In the multiplayer development process, the naming convention is very important, the unified naming convention is helpful for the coding readability, below share with you the name specification of iOS naming conventions and pictures and Chettu
iOS naming code
Small hump Nom
Http://www.cppblog.com/mzty/archive/2007/04/20/22349.html C ++ call conventions and naming conventions
Call conventions:_ Cdecl _ fastcall and _ stdcall are call conventions (calling convention), which determine the following content: 1) the order of function parameters in
treat them the same way, and black-box the implementation. This convention satisfies that criteria.
SomeClass.SomePublicConstantlocalConstant_privateClassScopedConstant
* Public class-level variables are universally frowned. it is considered to be a much better practice to use property procedures (accessors and mutators) to provide read and/or write access to a private member variable. if you must expose a member variable to other classes using "Public", follow the property
1. General rules: Do not abbreviations at will;
2. Use uppercase letters and underscores (_) for macros and enumerations;
3. the variables (including class and struct member variables), files, namespaces, and access functions are all lowercase letters and underscores (_). The class member variables are underlined and ended with G _. 4. refer to existing or similar naming conventions ......
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 th
1. general rules: Do not abbreviations; 2. use uppercase letters and underscores (_) for macros and enumerations. 3. the variables (including class and struct member variables), files, namespaces, and access functions are all lowercase letters and underscores (_). The class member variables are underlined and ended with G _. 4. refer to existing or similar naming conventions ......
name, a note shall be provided. The abbreviations or conventions used in the file, especially the special abbreviations, should be annotated as necessary at the beginning of the source file.(3) their own unique naming style, to be consistent from start to finish, can not change back and forth. The personal
name, a note shall be provided. The abbreviations or conventions used in the file, especially the special abbreviations, should be annotated as necessary at the beginning of the source file.(3) their own unique naming style, to be consistent from start to finish, can not change back and forth. The personal
Interface implementation Class –> Xxximpl.java
Persenter–> Xxxpersenter.java
Public parent class –> Baseactivity.java, Basefragment.java,-Baseadapter.java, etc.
Util class –> Logutil.java
Database Class –> Basesqlitedbhelper.java
Naming conventions for variables采用驼峰命名规则。Java Common variables:
Resultstring
UserBean
Loginpresenter
Android Control variables:
, and the others are "." (Lowercase period) Select the symbol at the beginning of the name.The 2.CSS style file is named as followsThe main master.cssLayout, Layout layout.cssColumn Columns.cssText Font.cssPrint style Print.cssTheme Themes.cssFour, English naming skills:-TOPIf you encounter infrequently used, you can use the translation tool to translate the English name.recommended Google online Translator
that this nomenclature was invented by a Hungarian programmer named Charles Simonyi, who later spent several years at Microsoft, and the nomenclature spread through Microsoft's various products and documentation. Today, most programmers use this nomenclature, no matter what software they use to develop them. The starting point of this nomenclature is to combine the order of magnitude: attribute + Type + object description, so that programmers make variables with a visual understanding of the ty
inline function is shorter, it is placed directly in the. h. If your code is long, you can put it in a file that ends in-inl.h. For classes that contain a large number of inline code, there can be three files: url_table.h // The class declaration.url_table.cc // The class definition.url_table-inl.h // Inline functions that include lots of code.??3. Type namingType name each word starts with an uppercase letter and does not contain underscores:
6. Naming conventionsThe most important consistency rule is naming management. The naming style quickly learns what the name represents: type? Variable? Function? Constant? Macro...? You don't even need to find a type declaration. The pattern matching engine in our brains can handle these naming
Java file naming conventions1. Class namingAbstract classes start with abstract or base.The exception class ends with exception.Enum classes use enum as a suffix.The interface that describes the ability uses able as a suffix.The implementation class differs from the interface with the suffix impl.Data class: Table name +do.Transport class: Domain-related name +dto.Presentation class: page name +vo.2.service
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.