usually uses a 8-space rule, because a regular indent (4 spaces) makes the statement body look more laborious. Like what:
Do not use this indentation methodif ((Condition1 condition2)|| (Condition3 Condition4)||! (Condition5 Condition6)) {//Wrong line wrapping, no indentationDosomethingaboutit (); The condition is aligned with this sentence, causing the reading program to miss this sentence.}
You should use this indentation methodif ((Condition1 condition2)|| (Condition3 Condition4)||! (
Variables | specification
A variable represents a storage location. Each variable belongs to a type that determines what value can be stored in the variable. A local variable is a variable declared in a method, property, or indexer. A local variable is defined by specifying the type name and the declaration character, which specifies the variable name and optional initial value, such as:
int A;
int b = 1;
However, a local variable declaration can also
Program | specification | namespaces
In addition to relying on classes provided by several systems (such as System.Console), the procedures introduced so far are independent. But the more common scenario is that the actual application consists of a number of different parts, each of which is compiled separately. For example, an enterprise application might rely on several different components, including some internally developed components and some co
css| Specification | Web page
Web developers (that is, you) can identify the div and other page elements and tags by creating CSS classes and ID names and using those names. For developers, when naming CSS selectors for redefining XHTML tags (tags), you must ensure that they match exactly the predefined tags, but in terms of class and ID selector names, it's a good thing. However, it is not a good habit to name these classes and IDs as you like.After
Coding | specification
First, the name of the type-level unit
1, class.
Classes declared by class, must be named after the noun or noun phrase, reflecting the role of the class. Such as:
Class indicator
When a class is an attribute, the end of the attribute, when the class is an exception (Exception), ends with Exception:
Class colorsetexception
Class Causeexceptionattribute
When a class has only one object instance (global object, such as application
Turn from: http://www.shui-mai.com/2018zuixiniosduanjiemianuishejiguifanzhengli/
In the iphone 6 is not out of time, are using 640x1136 px to do the design, since 6 of the release, all the design draft size to 750x1334 px To do the design draft size
750x1334px as the original design of the standard size: from the middle size up and down when the adjustment of the minimum amplitude of the interface, the most convenient to fit. Large screen times still use small size as a design size, will limit
php file or folder you want to process, and you can also ignore the processing of some files by specifying the file to ignore under this interface.
Then click the Output button to select the location and format of the generated document.
Finally click Create,phpdocumentor will automatically start to generate the document, the bottom will show the progress and status of the build, if successful, will show
Total documentation time:1 seconds
Done
Operation completed!!
We can then view the generate
The head area refers to the content between Tags that must be added
1. Company Copyright note
2. Web page display Character set
Simplified Chinese: Traditional Chinese: English:
3. Web Page Creator Information
4. Introduction to the website
5. Search keywords
6. CSS specification for Web pages
(see table of Contents and naming conventions)
7. Page Title
. You can choose to add a label
1. Set the expiration time of the Web page. Once the page
statements, which include multiple statements in a row:
# The correct wording
Do_first ()
do_second ()
Do_third ()
# is not recommended
Do_first ();d o_second ();d o_third ();
If/for/while Be sure to change lines:
# correct writing
if foo = = ' blah ':
do_blah_thing ()
# Not recommended for writing
if foo = = ' blah ': do_blash_thing ()
6, DocString
The most docstring of the two points in the specification: all public modules, functions, cla
Web|web Standard |xhtml| specification before starting formal content production, we must first look at the specifications of the Web standards Code. Understanding these specifications can help you take fewer detours and pass code verification as soon as possible.
1. All tags must have a corresponding end tagPreviously in HTML, you could open a number of tags, such as and without necessarily writing the corresponding and to close them. But this is
Specification | website Construction page Standard According to 800*600 resolution production, the actual size of 778*434px page length in principle no more than 3 screen, width of not more than 1 screen.
Each standard page is A4 format size, that is, 8.5x11 inch full size banner is 468*60px, half size banner is 234*60px, small banner is 88*31px and 120*90,120*60 is also the standard size of small icons
Each non-homepage static page contains no more t
1.1 Preface
At present there is a phenomenon in the software circle, that is: DBAs do not know how to write Pl/sql, and developers write a variety of, and inefficient. So many drawbacks have been caused:
1. Poor readability. It takes longer to read a program written by someone else than to write a program, and not only do people not understand it, but they can't understand it for a long time.
2. Poor maintainability. The longer the program is written, the worse it becomes, like the laceless c
Coding | specification Technotes, HowTo Series
C # Coding Style Guide
Version 0.3
by Mike Krüger Icsharpcode.net
About the C # coding Style Guide
File Organization
Indentation
Comments
Declarations
Statements
White spaces
Naming conventions
Programming practices
Code examples
1. About the C # coding Style Guide
This document May is read as a guide to writing robust and reliable programs. IT focuses on programs written in C #, but many of the rules
Code | Specification 4.5 remote Operation Remoting
1. Prefer to use a management configuration (configuration file) instead of using program autoconfiguration.
Prefer administrator configuration to programmatic configation.
2. Always complete the IDisposable in a separate call object.
Always implement IDisposable on the single call objects.
3. Always use TCP channel and binary format for remote operation
Always prefer TCP channel and binary format whe
Code | Code cont. Second, idesign C # code specification three.
34. Avoid using the new inheritance modifier, but use override.
Avoid using the new inheritance qualifier. Use override instead.
35. For unsealed classes, the public and protected methods are always marked as virtual.
Always mark Public and protected methods as virtual in a non sealed class.
36. Never use unsafe code unless it involves interoperability.
Never use unsafe the code unless w
Specification 4.1 iterator block
An iterator block (iterator blocks) is a block that produces an ordered sequence of values. The difference between an iterator block and a normal statement block is one or more yield statements that appear.
The yield return statement produces the next value of the iteration.
The yield break statement represents the completion of the iteration.
As long as the return value type of the corresponding function member is an
type of this in the class declaration. For non-generic classes, the instance type is just a declaration type. Several declaration classes are shown below, along with their instance types.
Class A
{
Class b{}//instance type: A
Class c
}
Class d{}//instance type: D
20.1.3 base class Specification
The base class specified in the class declaration can be a constructed type (§20.5). A base class cannot itself be a type parameter, but it can contain
Application Identification Application Identifier;aidConsists of a registered application that provides a trademark (RID) and a dedicated application identifier extension (PIX)
AID: Uniquely identifies an application, divided into two parts, RID (5 bytes) +pix (up to 11 bytes)
RID: The registration identifier, assigned by the ISO organization, identifies a globally unique application provider, typically assigned to the card organization, such as assigned to the master, for example, to UnionP
Code Specification
Things are not big, but when it happens, there will be bugs, how to debug their own do not come out.The thing is this: the big night of the Cheerful debugging code, and nothing, just want to debug the HAP framework of the query.
above is the MyBatis configuration file, the file does not write a problem (see there is no), such as:
Column corresponds to the field of the database, CompanyID corresponding to the entity class Hapor
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.