I. Specification of modulesFirst think about why the module is important?Because of the module, we can more easily use other people's code, want what function, load what module.However, this has a premise, that is, we must write the module in the same way, otherwise you have your writing, I have my writing, it is not messy set! This is even more important considering that the JavaScript module does not yet have an official specification.Currently, there are two types of JavaScript module
Sign
Logo
Small linked pictures
button
Decorative drawings
Pic
Picture of the title
Title
Banner_sohu.png, Banner_sina.png, Menu_about_us.png, Menu_job.png, Title_news.gif, Logo_police.gif, Logo_ National.gif, Pic_people.jpg
Fourth section CSS Annotation writing specifications 4.1 hints and tag information commentsThis is the most common way to note that
, a tool that gives you a deep understanding of your own business areas-the real things you need, the way you want to conquer problems, and deal with problems. If you haven't done so yet, please try it. The following articles will give you some hints:
http://www.oreillynet.com/lpt/a/5463
http://www.oreillynet.com/lpt/a/5584
Http://wiki.cacr.caltech.edu/danse/index.php/Unit_testing_and_Integration_testing
Http://docs.python.org/library/unittest.html
Coding Specifications
design logo specifications and skills, using a convenient appropriate software, reference to other excellent logo design, spend some creativity and time, you can also design a satisfactory logo.
Logo design is undoubtedly an art form, but it is not the design of the logo people are artistic origin. Some webmaster, freelancer, design beginner or small design team, they are not specialized in logo design, but want to be able to master some of the basi
module names.After Drupal 8 and after, you should use the Const keyword instead of the define () function to define constants, because it is more efficientNote that const cannot be used in PHP expressions, so in conditional judgment and non-literal value??? , you should still use the Define () functionGlobals (Global Variables)When you define a global variable, you should start with an underscore and a module/topic nameClasses (Class)Class names should be named with the Hump (that is, the first
Basic requirements
1.1 Program Structure analysis, easy to understand, a single function of the number of programs can not exceed 100 lines.
1.2 What to do, to be simple, straightforward when the code is streamlined to avoid garbage programs.
1.3 Use standard library functions and public functions as much as possible.
1.4 Do not arbitrarily define global variables, try to use local variables.
1.5 use parentheses to avoid ambiguity.
2. Readability Requirements
2.1 Readability first, effici
There is no doubt that anomaly specifications are a compelling feature. It makes the code easier to understand because it clearly describes what kind of exception a function can throw. But it's not just an interesting note. The compiler can sometimes detect inconsistencies in the exception specification at compile time. And if a function throws an exception that is not in the exception specification range, the system can detect the error at run time,
GBIC is the abbreviation of Giga Bitrate Interface Converter, is an interface device which converts gigabit electrical signals into light signal. The Gbic design can be used for hot-swappable. The gbic is an interchangeable product that conforms to international standards. Gigabit switches designed with GBIC interfaces are flexible and have a large market share in the market.
Cabling Specifications for Gbic ports
The following table shows the cablin
Apply:ACCESS2000 ACCESS97
Database specifications are the working limits of MDB, to the following ACCESS2000 specifications, and ACCESS97 only very few differences, the difference is particularly noted.
Database
Database file size: 2 billion bytes (ACCESS97 to 1 billion bytes)
Number of components within a database: 32,768
Die Fast: 1024
Number of bytes in a component name: 64
Number of bytes in a pa
MySQL Technical specifications
Oracle MySQL Cloud service
MySQL Database as a service
A flexible architecture
Open source
Multithreading
Pluggable Storage Engine Architecture
INNODB,NDB Cluster
MyISAM, merging, memory, archive
ANSI SQL Standard
ANSI SQL
Sub-query, join, cursor
Prepared statements
Tags: number of specifications post storage engine settings Select keywords Influence andA brief introduction: Today we talk about research and development norms Two specifications1 table1 Choosing the right character set and storage engine recommended InnoDB UTF8MB42 table name do not include MySQL keyword, conform to naming convention3 foreign keys are not recommended4 Try not to use partition table, the use of sub-database table is the best solutio
Tags: diagram definition condition management Create author promotion include apply color Atitit Database view view using recommended specifications and best practices and methodologies 1. Advantages of the view:1 1.1. * * improve readability and customize user data to focus on specific data 1 1.2. Using views, you can simplify data manipulation. 1 1.3. * * increase The refactoring change of the underlying table of the extensibility shield
, index specification, usage specification, etc.Normative existence meaning
Guaranteed Online Database Schema specification
Reduce the probability of a problem
Easy and automated management
Specifications need to persist for a long time, for development and DBA is a winning thing
Constraint specification
Table Character Set selection UTF8, if need to store emoj emoticons, need to use UTF8MB4 (MySQL 5.5.3 later suppor
name.Prefix: Use the lowercase letter TB, which represents the table. In the actual name, a system tries to take the same word, multiple after add _ to connect the distinction.Therefore, the legal table name is similar to the following.TbmemberTbmember_infoTbforum_boardTbblog_comment1TableTable names such as Order/useraccoutComplies with the following specifications:(1) Uniform use of singular form, against orders(2) Capitalize the first letter, mult
Applicable: The ACCESS2000ACCESS97 database specification is the operational limit of MDB. The following lists the ACCESS2000 specifications, which are slightly different from ACCESS97. ● Database file size: 2 billion bytes (ACCESS97 is 1 billion bytes) number of components in a database: 32,768 Mode Fast: 1024 1
Applicable: ACCESS2000 ACCESS97 database specifications are the operational limits of MDB. The
Automatic cropping tool (C #) for the latest IOS Application Development Icon specifications #),
Early in the past, I developed IOS apps. I used C # To write a simple IOS APP development Icon Type Auto-cropping device for IOS apps, at present, there are more and more screen specifications for IOS devices. One version requires several types of resolution icons, which are hard to generate one by one with PS.
For Engineers familiar with the C/C ++ or Java language, JavaScript is flexible, easy to understand, and requires relatively loose code formats. It is easy to learn and use it in your own code. Because of this, JavaScript coding standards are often despised. Fixing and complementing during the development process will eventually become a nightmare for subsequent maintenance personnel. The long-term value of software is directly proportional to the coding quality. Coding
The following is a brief analysis of php and database code development specifications. For more information, see
1. naming rules for various variables in PHP
(1) directory naming, file naming, and local variable naming:English name words and verbs are used. the following dashes are used to separate words. all letters are in lower case.
Directory: upload, templates, install, manage ......
File: index. php, register. php, config. php ......
Variable:
This shows the encoding specification from the PHPCMS development documentation. although it is called the PHPCMS development specification, I think this applies to all PHP programming. After writing so many PHP codes, many codes may not be able to compare and correct the codes in the future. Note: This shows the encoding specification from the PHPCMS development documentation. although it is called the PHPCMS development specification, I think this is the case for all PHP programming. After wri
PHP programming standards have always been written in the php function style. all variables, functions, and classes are written in lower case and separated by strikethroughs, I have always been reluctant to use the camper code specification. I personally think it is very troublesome to write code between uppercase and lowercase letters, and my PHP functions are all in lower case. why don't I use this format?
Good code writing habits + good comments habits + php?entor = instruction manual
A te
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.