"Software Engineering--theory, Method and practice"--Summary of the Nineth chapter

Source: Internet
Author: User

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

Related Article

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.