specification
4.1 Indent
4.2 Spaces
4.3 alignment
4.4 Blank Line
4.5 Notes
5. code file Style
1. PrefaceIn order to ensure the readability of the system source program, thereby enhancing the maintainability of the system, the
Background:Just when I saw the volatile modifier, I read that the author was reading the Java language Specification and then translated it into his own understanding.Survey:Java language Specification, the Java
as the programming format specification of Hebei post application system software (Java language). In the process of coding, testing and maintenance of the system, strict compliance is required.3. Java Naming conventions3.1 Public engagements naming refers to the name of the source file name, method, directory, packag
Code | Specification 1 Introduction (Introduction)
1.1 Why should there be coding specifications
Coding specifications are particularly important for programmers for a number of reasons:
-80% of the cost of a software lifecycle is to maintain
-Almost no software, throughout its lifecycle, is maintained by the original developer
-Coding specifications can improve the readability of the software, allowing programmers to understand the new code as quick
The Java language specification requires the Equals method to have the following characteristics:(1) Reflexivity: For any non-null reference x,x.equals (x) should return true;(2) Symmetry: For any reference to x, and Y, if and only if, Y.equals (x) returns True,x.equals (Y) should also return true;(3) Transitivity: For any reference to X, Y, Z, if X.equals (y) re
Note: According to the Java language Specification, the main method must be declared public.Some versions of the Java interpreter can also execute Java applications when the main method is not public. One of the programmers reported the bug. If interested, check this bug num
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 th
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
improve the readability and extensibility of the program6. The method should not exceed 2 layers of the circulating cover7. For classes that do not require subclasses to overload during design time, use the final8. Try to avoid more than 100 lines of code per method (valid lines of code, not including comments), but must ensure the integrity of the logic9. The method in the interface defaults to protected, exposing the method to public only if it is confirmed that the package of the other subsy
whether it is final. The 7) class member method is only intended for internal invocation of the class and must be private. The 8) class member method is only exposed to the inheriting class, and is limited to protected. description: Any class, method, parameter, variable, strict access to the scope. A wide range of access is not conducive to module decoupling. Think test: If it is a private method, you want to delete it, but a public service method, or a The scope of the variable
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
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 res
One of the most important features of. NET is cross-language programming, and DLLs written in C # can be called in vb.net, for example:A class written in C #, compiled into a DLL, and then called in vb.net:Using System;Namespace Clssample{public class Clstest{Public Clstest (){}public void ABC (){Console.WriteLine ("ABC");}}}Called in vb.net:Dim C as Clssample.clstest = New clssample.clstestC.ABC ()Now add a function to the Clstest class in the DLL:pu
, ...);
The first represents an unknown parameter, and the second represents no parameters, the third represents a parameter, the fourth represents an unknown parameter, and the first parameter type is int, and the unknown parameter has a solution in the C language, which is a variable-length parameter list, referring to the C standard library, where we explain the basis We have to keep everything in our hands, we don't fill in the parentheses i
Specification
Original: "C # Version 3.0 Specification", MicrosoftTranslation: Lover_pQuery Expression provides a language-integrated syntax for queries that resemble relational and hierarchical query languages, such as SQL and XQuery.
Query-expression:From-clause Query-body
From-clause:From From-generators
From-generators:From-generatorFrom-generators, From-gene
Specification
Original: "C # Version 3.0 Specification", MicrosoftTranslation: Lover_pC # 3.0 (C # orcas--Devil) introduces a number of language extensions on the basis of C # 2.0 to support the creation and use of higher-level functional-style libraries. These extensions enable structured API constructs to have the same expressive power as query languages in oth
cards.In summary, the advent of the JAVA Card Unified Smart Card Programming Interface (API), unified the smart Card programming language (JAVA language), for the wider use of smart cards to provide a basis for the smart card industry to truly become a unified standard industry.Structure of the
Protocol Buffer Technical Explanation (language specification)The content body of this series of blogs originates mainly from the official documents of protocol buffer, while the code samples are drawn from the demo of a company's internal project currently under development. The purpose of this is to not only maintain the good style and system of Google documents, but also combine some more practical and c
The JavaScript programming language, as the most popular client-side scripting language, has long been known to many WEB developers. With the advent of the Web2.0 era and the wide application of Ajax technology, JavaScript has gradually attracted more attention. The more you work on the JavaScript language, the more you use it flexibly, and the quality of your co
development and testing processes throughout the software development lifecycle Ldra testbed application in many different areas process improvement software test software Maintenance
Advantages of LDRA testbed:
Improve software Quality
Locating software defects
Enforcement of industrial standards
Reduce maintenance costs by more than 40%
Reduce development and testing costs by more than 75%
Improve employee motivation through automated processes
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.