should precede (for example, commit before reset), use style controlwhen a page is developed for a mobile device, the Type property of the input box is specified based on the content type. When a form submission is made using JavaScript, the native commit feature should work correctly if the conditions permit. MultimediaAudio: MP3, WAV, OGG Video: MP4, WebM, OGG priority to use audio and video tags to define the audio and video, and in the object tag indicates that the browser does not support
), when using abstract and finalization (final) to make class declarations, they must be placed before the visibility declaration (public or protected or private). When static is used to make a class declaration, it must be placed behind the visibility declaration.Directly on the code:3. Control StructureThe control interface is the if else while switch. This type of code is often prone to problems, but also to standardize.(1), if,elseif,else writing, directly on the code bar:(2), switch,case no
Android code specification and android code specificationI. Naming rules 1.1 packages
Naming rules: the prefix of a unique package name is always all lowercase ASCII letters and is a top-level domain name, usually com, edu, gov, mil, net, org, etc.
Statute: Subject to the company, generally com. Company Name. Project name abbreviation. Module name or level name1.2 class and interface naming
Naming rules: a class name is a noun. It is a combination of
Date Format String specification, Format String Specification
From http://yanwushu.sinaapp.com /? P = 16
Yyyy-MM-dd HH: mm: ss is a date formatted string. This document describes the specifications of this string.
Case sensitivity
Yyyy-MM-dd HH: mm: ss year-month-day hour: minute: Second
M is case-sensitive to distinguish between "month" and "Minute"
H is case-sens
replace the if...else in a different way ... ;3) Initialize the code of the control, do not put it all in the OnCreate method, such code is not beautiful and easy to modify, you can create another method to initialize the control, and then call in OnCreate OK;4) in adapter to use Viewholder, save resources, otherwise it is easy to appear ANR;5) Some constants can be written in the same class to manage, reduce duplication of code writing;6) If you create a string to change its value, it is recom
Java Development specification summary_code coding specification, java Coding
It is a good habit to gradually develop codes.
1. Basic Principles
Mandatory principle:1. The StringBuilder must be used for string addition;2. try... Catch usage
Try {} catch {Exception e. printStackTrace ();} finally {} // It Can Be Used in the Action on the outermost layer, and will not be used elsewhere;
Try {// program code}
Article Description: Android 3.0 (Honeycomb) interactive ui design specification.
Android OS since the listing, because of the lack of unified planning, so that different equipment in 1.5, 1.6, 2.0, 2.1, 2.2, 2.3 several major versions of the wandering, I used the HTC Hero (commonly known as G3) is also a version from 1.5~2.3, 10 more ROM manual brush machine tried to come over, Process and its entanglement ~.The problem with multiple-syste
PHP code specification and php code specificationNaming Conventions The. class. php class files are all suffixed with. class. php. They are named in the upper case by using the hump method, for example, Pay. class. php; the names of the classes are the same as those of the Directory _ file names. For example, the Directory of the class name Zend_Autoloader is Zend/Autoloader. class. php; the alias function uses lowercase letters and underscores. For e
This is the Chinese version of documentation/codingstyle, and there seems to be no humor in lkd. Fuck Hungary naming method again.
"The question of containing function types in function names (the so-called Hungarian naming method) is that the compiler knows the types andAnd can check those types.ProgramEmployee confused. It is no wonder that Microsoft always creates problematic programs ."
Linux KernelCodeStyle
This is a short document describing the preferred code style of the Linux ke
Title, I'm a little confused, who can say it carefully:
1, the difference between psr-0 and psr-4 in composer;
2, the difference between the psr-0 norm and the psr-4 norm;
3, composer and Php-fig, who indulge who.
Reply content:
Title, I'm a little confused, who can say it carefully:1, the difference between psr-0 and psr-4 in composer;2, the difference between the psr-0 norm and the psr-4 norm;3, composer and Php-fig, who indulge who.
is actually a naming
Java object model specification and Object Model SpecificationThe following is a set of object model (entity model)-vo (Object model that interacts with the front-end) that I have summarized based on my work experience, frontend refers to pages, mobile terminals, and remote service calls.)-xxxReq (the entity corresponding to the json request sent by the frontend)-xxxResp (the entity corresponding to the response json returned to the frontend) -po (Obj
1. Pattern definition
The specification pattern is an extension of the combination mode, which is used more in the Framework development (project level development is seldom used), and here makes a simple introduction.The specification pattern (specification) can be considered an extension of the combinatorial pattern. Sometimes certain conditions in a project d
for readability, as the following description contains indents:/** * Here are a method comment with some very special* formatting that I want indent (1) to ignore.* */Method annotations generally include:1. The main description of the method, in. Or. End2. Describe how the method accomplishes the purpose of the method, and the reason for using the method3. Describe how the method is used, including the environmental requirements used, such as preconditions, post conditions, and concurrency requ
element * Based on the passed in tag name * * @param {String} tag * @return {element} el Ement */function make (tag) { //... stuff ... return element;} 12.2 Use//as a single line comment. A single line of comments is used on the comment object above the other line. Inserts a blank line before the comment. 12.3 Adding fixme or TODO prefixes to annotationsHelp other developers quickly understand that this is a problem that needs to be reviewed, or provide a solution to the functionality that n
SQL Authoring Specification
1. Basic SQL Authoring Specification
(1) Direct use of table names in rule 1:sql, no schema as prefix, and cross schema access to create synonym (Data Warehouse, CRM database not applicable).
(2) Rule 2: You must use bound variables to avoid direct references to constants.
Description: Frequent hard parsing can affect database performance.
(3) Rule 3: Avoid applying a functi
For the original English version, see explain (for rss2.0, it is the abbreviation of these three words, for rss1.0, it is the abbreviation of RDFSiteSummary, and 1.0 and 2.0 are two systems ). RSS based
See http://blogs.law.harvard.edu/tech/rss for the original English version
RSS is the abbreviation of Really Simple Syndication (for rss2.0, it is the abbreviation of these three words, for rss1.0, it is the abbreviation of RDF Site Summary, 1.0 and 2.0 go through two systems ).
RSS is based on X
Atitit Webdriver principles and concepts of technical specifications1. book haosyo ma12. webdriver is A standard for the consortium, chaired by Selenium . 1 3. How Webdriver works (zhuan)11.Book Haosyo ma2.webdriver is a standard for the Selenium , presided over by the w3c browser test and tool (Browser testing and tools) Workgroup released webdriver The working draft. The specification
Introduction to soap
Soap (simpleobjectaccessprotocal, Simple Object Access Protocol) technology helps achieve interoperability between a large number of heterogeneous programs and platforms, so that existing applications can be accessed by a wide range of users. Soap combines the mature HTTP-based Web technology with the flexibility and scalability of XML.
SoapIs to make existing applications more widely used by users. For this purpose, there is no soapapi or soap Object Request proxy (soaporb)
Generally, we recommend that you use HTML code that can pass standard validation unless you have to make concessions on performance optimization and file size control. HTML5 document type declaration is recommended for HTML standard document types :! DOCTYPEhtml. (We recommend that you use texthtml format ...,. Original article: Web Styleguide-Style guide to harmonize HTML, Javascript and CSS/SASS coding style
HTML Specification
Document Type
HTM
Code Coding Specification Objective: To be able to standardize in the coding process, to develop good behavior habits for future program development.Code Coding specifications Use Scope: Java project development.
Package naming specification:Objective: The nomenclature of package should reflect the good division of Project resources.
The Servlet class contains the package naming specification: Company nam
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.