Software implementation is a key process of a software product from concept to entity, which translates the results of detailed design into program code written in a programming language and can eventually run. The process of software implementation includes basic activities such as code design, design review, code writing, code walking, code compiling and unit testing. Programming language is an important tool for communication between human and computer, so choosing a suitable programming language is an important work in software development process, the reference standard has application domain, user requirement, system compatibility, portability and development environment.
In software engineering practice, the coding specifications of the commonly used programming languages are as follows:
1. File Naming and organization
2. Layout of the Code: (1) appropriate blank line (2) line of code and space within the line (3) branch, alignment and Indentation (4) naming Convention (5) Declaration (6) Comment
The programming style affects the readability, testability and maintainability of the program, and even affects the execution efficiency of the program. Common problems include the following:
(1) The program annotation problem: The program annotation should be simple and clear, good annotation is the refinement expression and the clear expression to the design idea.
(2) variable naming problem: name it with complex and difficult to understand names.
(3) Memory anomaly problem: Due to continuous memory leakage caused by or unauthorized access to memory, such as pointer parameter problems.
(4) Exception handling problem: No various types of exceptions are caught.
(5) Performance issues: 1. Avoid creating duplicate Objects 2. Optimize the statement to improve performance.
After writing the source program, software code review is required. For example, there are no errors in the syntax of the program module, semantic correct problems, some performance or functional deficiencies and so on.
Introduction to Software engineering 9-Implementation