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
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
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
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
. When a user is logged on globally, when accessing another service provider, the service provider that is accessed first interacts directly with the identity provider to inquire whether the user is globally logged on and, if it is determined that the user is logged on globally, to allow the user to access the service provided by him or redirect the user to the identity provider. To log on globally.
In a specific single sign-on implementation, the identity provider and service provider interact
Original article: http://dev2dev.bea.com.cn/techdoc/20060919883.html
With regard to SSO for multiple sites (such as passport), I have never wondered how users can safely tell their passport accounts and passwords to third-party sites.Now I
). If the user is not on the terminal, the email content is directly sent to the mailbox. If the email is sent to the user terminal or user mailbox, the sending operation is successful.
SAML
From:
The send and mail commands require that the mail content be directly sent to the user terminal (if the user is on the terminal ). In any case, the mail will enter the mailbox. If the mail enters the mailbox, the sending operation is suc
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
Believe that there are many HTML5 all-stack development of the beginners to the CSS naming rules are confused, this is not a good phenomenon, then the following to give you a HTML5 all-stack development of the naming standard, I hope to help you.CSS Naming conventionsGlobal style naming specification: GLOBAL.CSS;Frame layout naming specification: LAYOUT.CSS;Font style naming
Gigabit Ethernet SpecificationBecause Gigabit Ethernet technology is still one of the most mainstream applications of Ethernet technology, so the specification of this Ethernet is still being introduced to meet the needs of different application environments, improve technical performance.Earliest in1998and the1999released in the yearIEEE 802.3zand theIEEE 802.3abthe standard includes1000BASE-LX,1000BASE-SX,1000base-cxand the1000base-t(the first three
targeted build JavaScript Ecosystem Web server group, in browsers and command-line applications and desktops. (he says so on his own wiki)
This organization has developed some specifications (can go to their website to see http://www.commonjs.org/) including Commonjs modules/1.0 specification, we usually speak of COMMONJS specifications, said this.
"The Commonjs API would fill that gap by defining APIs that handle many common application needs, ult
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.