In the previous article we implemented a lightweight specification pattern using the features of the C # language, the key of which was to discard the specific specification type, instead of using a delegate object instead of the only key IsSatisfiedBy method logic. According to our analysis, one of its advantages is the use of simple, one of its disadvantages is not static representation. But they're all d
WCF Service Programming Design Specification (4): Operation and error design. Mainly includes service operation and call, error design specification. Chinese-English comparison. Welcome message exchange. The next section describes the contents of transactions, concurrency management, and queue services.
Operations and Calls
Actions and calls
1. Does not treat one-way calls as asynchronous calls.
Do not
Refer to Sun's Java coding specification, semi-translation semi-comprehension.
Use blank lines to split blocks of code and add comments to code blocks;
A file a class (or interface) that places a private class behind a common class that references that class;
Source file composition: The declaration of a file comment, Package/import, class, or interface;
/** Class Name* Version Info* Copyright
First, what impact on software quality? such as performance, reliability, security, dependency management and so on.Second, customer-first programming-if you have to describe the functions provided by your library, and let a developer without looking at the library of the premise,Based on what he thinks the library should look like to write a program, does the developer ultimately write a program that is close to what you provide? On aGroup developers do this test, if most of the written program
PEP8 Coding Specification
This blog is a translated version of PEP8https://my.oschina.net/u/1433482/blog/464444
Divided into 7 main parts
It is important to keep the consistency of the code because it must read more code than write code during the development process.
1. Code layout
Indent: Four spaces
Multi-parameter hanging or vertical indentation in the method: Select line break in the IDE at the end of the
:
All lowercase;
try to use English;
Do not add the lever and underline;
Try not to abbreviate unless you see the words clearly.
CSS style sheet file naming main master.CSS module Span class= "Hljs-selector-tag" >module.css Basic shared Base.css layout, layout layout .css theme themes .css column columns .css text font . css form forms.css patch mend.css print Print.css Second, the CSS writing order
Position attributes (position, top, right, z-index
CSSWriting Order1. Position attributes (position, top, right, z-index, display, float, etc.)2. Size (width, height, padding, margin)3. Text series (font, Line-height, letter-spacing, color-text-align, etc.)4. Background (background, border, etc.)5. Other (animation, transition, etc.)CSS Writing specification Use CSS abbreviation attributeCSS Some properties can be abbreviated, such as Padding,margin,font, and so on, so that the refinement of the code
Here is the file header annotation specification that I programmed in C/s + +, basically referring to each company./************************Module Name: Note: Only the annotations here use/**/this way, and the other places are using double slashes//. Use English as much as possible for comments. In principle, a file header comment is added to each handwritten code file.C + + Programming Specification-File h
(runtime), For example: it is closely related to the current page data.Introduces the answer text that is innate by the execution page or servlet.Request Processing phase:The JSP container, in addition to the above-mentioned emphasis on translating JSP pages into Servlets , also attaches importance to invoking JSP page implementation classes to process each request and generate an answer . This phase is called the request processing phase . The request processing phase executes only class docum
--xhtml MP and Wcss
First, the common sense of WAP (omitted)
Second, XHTML MP
(i) Introduction to the XHTML MP
XHTML MP (extensible Hypertext Markup Language Mobile profile)
WAP2.0
Compatible with WCSS (WAP css/wap cascading Style Sheet)
is a subset of XHTML
XHTML Basic (XHTML subset) + additional XHTML elements and attributes
Between WAP browser and internet
Previous WAP sites (WML and WMLScript)
More Show performance (presentation control)
(i) Introduction to the XHTML MP
Advantages: Developed
until they can receive messages2, asynchronous: Subscribers or receivers can be registered as a message listener. When the message arrives, the system automatically invokes the OnMessage method of the listener Four, the JMS programming model#ConnectionFactoryThe factory that created the connection object, for two different message models, has queueconnectionfactory and topicconnectionfactory#ConnectionRepresents a connection between a client and a JMS system. Connection can produce one or more
RMI Specification--Chapter II
Java Distributed object Model
2.1 Distributed object ApplicationsRMI applications typically include two separate programs: Server programs and client programs. A typical serviceThe application will create multiple remote objects so that the remote objects can be referenced, and then wait for the clientInvokes methods on those remote objects. A typical client program gets one or more of theA reference to the remote object,
1. Variable naming specification
Scope Naming conventions
prefix
Description
No
Local variables
M_
Class membership Variable (member)
Sm_
Static member variable for class
S_
static variables
G_
Global variables
Sg_
Global static variables
Httpfile *_picreturnbuf-->httpfile *m_pstpicreturnbuf: Through m know this variable is c
Specification Kodo is the persistence Layer framework project that BEA acquired after acquiring Solarmetric company, which previously only supported JDO standards, and February 13, 2006, BEA announced the release of the latest version of the Kodo project--kodo 4.0.0 Early Access 4,kodo 4.0.0 EA4 supports the EJB3 and JDO2 two standards, in this article, we will first learn and understand the Kodo EJB to learn how to use the Kodo EJB to complete the de
.
· Boolean variable names should contain is, which means yes/no or true/false values, such as Fileisfound.
· When naming a state variable, avoid using terms such as Flag. A state variable differs from a Boolean variable where it can have more than two possible values. Instead of using Documentflag, you use a more descriptive name, such as documentFormatType. (This item is for reference only)
· A meaningful name is still used even for variables that may be short-lived in a few lines of code. Use
Variables | specification
Original: "C # Version 3.0 Specification", MicrosoftTranslation: Lover_pIn a local variable declaration with an implicit type (implicitly typed local variable declaration), the type of the declared localized variable is inferred from an expression that initializes the variable. When a local variable sound is used to indicate character var instead of a type, and the current scope do
Specification
Original: "C # Version 3.0 Specification", MicrosoftTranslation: Lover_pC # 3.0 allows the new operator to be used with an anonymous object initializer to create an object of an anonymous type.
Primary-no-array-creation-expression:...Anonymous-object-creation-expression
Anonymous-object-creation-expression:New Anonymous-object-initializer
Anonymous-object-initializer:{member-declarator-listopt
Standardize the development of the specification of ASP Development code-write this thing please advise, later development good less to eat a bit of pain.
One, one-page writing specifications:
Remember that the page needs to be divided into modules:
First module: Receive parameters. [It is possible to submit from different pages to the same page, or you can see which of the two form items is treated as a priority.
Second module: Define global variabl
Specification | The dispersibility and interactivity of developing and standardizing WEB development decided that WEB development must comply with a certain development specifications and technical conventions, only each developer in accordance with a common specification to design, communication, development, testing, deployment, in order to ensure that the entire development team to work together to impro
, PHP in various types of annotation specifications/*** Paging preprocessing function* SQL SQL statement* Page Current Page* Limit the number of per-page display* Total number of MAXS queries*/function limit ($sql, $page = ' 0 ', $limit =10, $maxs = ') {}User detectionif ($check _obj->username ($username) = = True) {...}$user _name = $_get[user]; Get user Information
4, database design and Operation specification Database
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.