Discover file naming conventions best practices, include the articles, news, trends, analysis and practical advice about file naming conventions best practices on alibabacloud.com
directory and file naming directories and filenames are lowercase + underlined and start with lowercase letters; class libraries, The function file is unified with. php suffix, the file name of the class is defined in the namespace, and the path of the namespace is consistent with the path of the class library
name and a table name. If your system is windows and you want MySQL to be case sensitive, then you can add the following in the My.ini file, at the end of the [mysqld] section: [plain] view plain copy
#If set to 0, table names is stored as specified and comparisons is case sensitive.
#If set to 1, table names is stored in lowercase on disk and comparisons is not case sensitive.
#If set to 2, table names is stored as given but compared in low
method facilitates the stack traceBadvar log = function (msg) {Console.log (msg);};/ /goodvar log = function log (msg) {Console.log (msg);};If the file is exported as a class, the filename should be consistent with the class nameFile Contentsclass CheckBox {//...} Module.exports = checkbox;//in some other file//badvar checkbox = require ('./checkbox ');//Badvar checkbox = require ('./ Check_box ');//Goodva
Common namingList, Luser array, arruser string, strtitle, split string, Strstatuss (multiple states separated by commas)C #Entity layer unification starting with E, such as euser,eorder, such as the creation of the object is Var euser=new euser ();D to layer (search object layer) unified to D, such as Duservar duser=new Duser (); Multi-table search objects to d+ Each table name, Duserorder property Description Equal,notequal,equalgreatthan,greatthan,equallessthan,lessthan,startwith,endwith, Cont
, responsible person, related remarks, using double star annotation/****/2. For the division of large areas under the module, it is customary to use double-line annotations://==================================================Describe:3. For the region, the method notes, through past experience, not everyone is willing to write in detail, so I think simple and clear best, using general comments:Code descriptionAuthor notes and other information (not limited to)4. For some important methods in the
For the writing order of CSS1. Location properties: (e.g. position,top,right,z-index,display,float, etc.)2. Size: (Width,height,padding,margin)3. Text series: Font,line-height, Letter-spacing,color-text-align4. Background: Background,border5. Other: Animation,transitionFor writing Specifications:1. Use CSS abbreviation properties, such as for Padding,margin,font properties2. Remove the 0 in front of the decimal as Font-size:.8em3. Abbreviated name (but for example, to ensure its semantics)4.16 b
--Check for field names that do not conform to the database naming conventions
Select Table_name,column_name,data_typeFrom User_tab_columnsWhere column_name in--(Select keyword from v$reserved_words)(' ACCESS ', ' ADD ', ' All ', ' ALTER ', ' and ', ' any ', ' as ', ' ASC ', ' AUDIT ',' BETWEEN ', ' by ', ' CHAR ', ' CHECK ', ' CLUSTER ',' COLUMN ', ' COMMENT ', ' COMPRESS ', ' CONNECT ', ' CREATE ', ' cur
Object | specification | data | Database naming Conventions Database nomenclature
A Names of entities and attributes
1. Commonly used words have been abbreviated, and in the naming process, the abbreviations can be pieced together according to semantics. Note that because the Orcal database unifies the field names into either uppercase or lowercase, the underscor
1. Use lowercase letters and dashes to name CSS classes and CSS files2. Organize CSS FilesGLOBAL.CSS includes some basic styles that can be reusedLayout.css used for layoutCONTROLLERID.CSS each controller has its corresponding CSS file, such as postcontroller.php CSS for POST.CSSCSS styles for widget-widgetclass.css widgets such as Widget-lastest-comment.cssFEATURENAME.CSS large features can have their own special style files, such as Markdown.cssOthe
)Example: public class Bird extends animal{}The process of generating an object:1, allocating object space2, assigning an initial value to a property3, calling construct methodTheorem:1, any main class object construction method will call the parent class constructor method2, any class has a construction method, if the programmer does not define themselves, then the system will add a default construction method, if the system is defined will not add.3, the construction method of any subclass the
Tags: mysql naming conventions1, database name and table name are strictly case-sensitive;2, the table alias is strictly case-sensitive;3, the column name and the alias of the column in all cases are ignored case;4, variable names are also strictly case-sensitive;MySQL is case insensitive under Windows.So in different operating systems in order to make the program and database can work properly, the best way is to be in the design of the time to lower
configured to differentiate between the case of a library name and a table name. If your system is windows and you want MySQL to be case sensitive, then you can add the following in the My.ini file, at the end of the [mysqld] section:
#If set to 0, table names is stored as specified and comparisons is case sensitive.
#If set to 1, table names is stored in lowercase on disk and comparisons is not case sensitive.
#If set to 2, table n
ANSI standards, to ensure that the code is common, others can understand.)If Ansi_quotes mode is used, the string literal must be enclosed in single quotation marks.SqlSQL keywords and function names are not case-sensitive.The database name, table name, and view name depend on the file name aspect of the operating system.Stored programs are case-insensitiveColumn names and index names are not case-sensitiveBy default, table aliases are case-sensitive
# #-*-Coding:utf-8-*-# # python:2.x# __author__ = ' Administrator '# my_list=[' A ', ' B ', ' C ', ' d '#"""# Most standard programs are built without ignoring usability, see the following example to understand the meaning of the sentence#"""# if ' e ' not in my_list:# my_list.append (' E ')# Print My_list# #[' A ', ' B ', ' C ', ' d ', ' e ']# #这是编写python程序和其他语言相比更加简单的原因之王, when writing a program, ideas can quickly be converted into lines of code# #3点是本章的重点#"""# Use the
you can see, only one. class file is produced, the file name is the class name. Classmake a summary of the above 3 points:from the above 3 experiments, the resulting. class file is not related to the interface it implements, the inherited parent class, in which case it produces only one. class file, and the
Transferred from: http://www.chinaz.com/design/2015/0908/443732.shtmlThe naming of the specification can improve client programmer's development efficiency and team collaboration. Personally think the identifier naming principle: As far as possible with the fewest characters and can fully express the meaning of identifiers.Transduction three principles of naming
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.