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
constructed by sub-access elements. The simplest way is to embed a structured value directly.In the access element. Consider the following Java class definition:
Packagecom. bofsoap. ibank;Publicclasstransfer {Publicadjustmentfrom;Publicadjustmentto;}If an embedded value is used to encode the access element, a serialized transfer object in soap is as follows:
InIn this case, the value of the adjustment object is directly encoded under their access element. When considering the combination of ac
Reprint Please specify source: http://www.cnblogs.com/Starshot/p/7050084.htmlSoap is a simple Object access protocol, it can also be understood as a specification for communication between programs, mainly based on XML and HTTP, and because of XML and HTTP based, so this protocol is very versatile, can be very good to achieve communication between different language platforms. The disadvantage is the relative weight level.There are many soap framework
JAP (Java Persistence API) Sun launches a set of ORM-based specificationsHibernate implements this set of specificationsHibernate has its own independent ORM operation database, as well as the operation database method implemented by JPA specification.The jar package is:Hibernate-entitymanager-5.0.7.final.jarCreated under SRCMeta-infFolder to create a file called Persistence.xmlPersistence.xml:Xmlns:xsi= "Http://www.w3.org/2001/XMLSchema-instance"Xsi:schemalocation= "Http://java.sun.com/xml/ns/p
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
Specification
IntroductionThe long-awaited EJB3.0 specification had recently released its first draft. A brief overview of the new specification is presented in this article, including new metadata support, EJBQL modifications, the entity Bean Model's access to the bean context and the run-time environment, and so on. The author also discusses the future adjustme
The role of the specification model is to build business logic elements that can be assembled freely. However, in the example of the previous article, the implementation of the "standard" specification mode is cumbersome, and simple functionality requires more complex code. However, since the "standard" approach, naturally refers to the implementation of any object-oriented language can be used, but we are
What do you need to know about the JS code specification that Google publishes?
Translation | Whiteyin
Translation | Https://github.com/WhiteYin/translation/issues/10
Google has published a JS code specification for people who are not familiar with code specifications. It lists the best practices you should do to write code that is simple and understandable.The code
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.