The 9th Chapter software Realization
Software implementation is a key process of a software product from concept to entity, which translates the results of detailed design into a program code written in a programming language and can eventually run.
First, the programming language
The programming language has been evolving and evolving, and its development has undergone a process from machine language to high-level language.
Code of software Code
In general, a Java source file consists of several sections (Section), each separated by a blank line and related comments, and the length of the file should not be greater than Yes.
a standard format for Java source programs that consists of the following structure:
(1) File header notes for the description of copyright and version information;
(2) package and import statements;
(3) Class and interface description statements.
Layout of the code: appropriate blank lines, lines of code and inline spaces, branches, alignment and indentation, naming rules, declarations, comments.
Third, software coding case analysis
Program Comments The program notes should be straightforward, and good annotations are a refined bid and a clear presentation of design ideas.
variable naming problem do not use your own prefix to name the variables and methods in the program. A good software code product should be able to be easily read by the tester, by the maintenance personnel easily modified.
Memory anomaly Problems possible causes of memory anomalies, memory leak problems, pointer parameter problems, "wild pointers" issues.
exception handling problem in the process of using exception handling, it must be very clear that there is no exception throw, exception throw and exception after the program execution process, grasp the exception handling jumps and nested processing, and pay attention to the exception handling memory problems.
performance Issues Avoid creating duplicate objects, optimizing statements to improve performance
Iv. Software Code Review
"Software Engineering--theory, Method and practice"--Summary of the Nineth chapter