Comments in the process of writing code is very important, good comments can make your code read more easily, in writing code must pay attention to the specification of annotations, where the script of the small compiled for everyone to tidy up, the need for friends can refer to the next
HP Annotation Specification
Annotations are important in the process of writing code, and good annotations make your cod
Head Usage Specification
Start tag using
The HTML tag must be accompanied by a MIP tag, namely:
Must include
Character set declarations must be included in the head tag:
The viewport setting tag must be included in the head tag:
The head tag must contain the
Must include
The head tag must contain
page Element Usage specification
MIP HTML Disables labels that have a
C language optimal state machine specification and C language optimal specification
Reprinted statement if reprinted content of this blog, please contact the 869119842@qq.com, get the author's written authorizationPreface
Recently, my thoughts may not be able to stop. I have conceived a GUI framework (very small for the Cotex-M Platform). I hope to implement it later. There is a touch screen detection in it
Requirement Specification for PC software: RMB 100 and Requirement Specification: RMB 100Device search instruction in PC Software Requirement Specification
The PC machine sends BRSR through serial port
The host sends all the searched bluetooth device names to PC machines in the format of"
BRSR "name" \ n
For example, there are three Bluetooth devices: AMOMCU_
4th: Type Design specification 4.1 types and namespacesNamespaces are used to organize the types into a hierarchy of related functional areas.Avoid a very deep namespace hierarchy. This level of browsing is difficult because users often need to look back.Avoid having too many namespaces.Avoid placing types that are designed for advanced scenarios and types that are designed for common programming tasks in the same namespace.Do not define a type withou
Mobile phone app Design code refers to the entire app interface for visual design UI style unification, the interface elements of the style, color, icon button and size set the uniform norms and use principles. Facilitate future coordination and collaboration and app Vision iterations.
The first part: the icon design Code of App interface
We are drawing the icon inside the app UI design, in Photoshop, as much as possible with shapes. Make sure the icons and buttons are vector graphs. The forma
alphabetically or by the relationship between methods.9. Each method, including construction and finalize, is a segment. Multiple variable declarations are logically combined to form a segment separated by a blank line between the segment and the segment.10. When declaring a class, it is necessary to indicate its access control, usually without modifiers, public, and private.11. Between the method and the method, the large part needs to be separated by a blank line.12. When writing generic clas
cpplint.py is a style error detection tool from Google Open source project. It is a Python script that is published with the Google Open Source project style guide. : Https://github.com/google/styleguide.How to use cpplint.py:1. Install Python. Note Set environment variables: writes the installation directory of Python to the PATH environment variable.2. Execute the cpplint.py scriptMy test experiment is as follows:1) Place cpplint.py and test.cc in the experimental catalogue.2) write a simple b
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
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 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.