Alibabacloud.com offers a wide variety of articles about ectd file naming conventions, easily find your ectd file naming conventions information here online.
should be capitalized.If you can, color as far as possible with three-bit characters, such as #aabbcc written #abc.If there is no border, do not write border:0, should be written border:none.Try to avoid using AlphaImageLoader.Try to merge duplicate styles as much as possible while keeping the code decoupled.Background, font, and so on can be abbreviated attributes, as far as possible using abbreviated form.Common naming:Container: ContainerPage Header: HeaderContent: Content/containerPage body
CSS File classification1. Common type: Label reset, default setting, Universal style2, Special type: Special layout, special module, special skinCSS File Reference order1. Public2. Main body3, skin and other modulesCommon file namesMaster.css or INDEX.CSS or main.css the mainMODULE.CSS ModuleBASE.CSS or GLOBAL.CSS Basic publicLAYOUT.CSS layoutThemes.css ThemesSki
Golang Naming conventionsImage
Filename
The main portal file for the entire app or package should be or be the same as the main.go app name shorthand. For example: Gogs The main portal file is named gogs.go .
Function or method
If a function or method is a judgment type (the return value is primarily a bool type), the name should begin with, or, f
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
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
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
--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
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
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.