Software Engineering-coding

Source: Internet
Author: User

The purpose of encoding is to translate the process description of a module into a source program written in the language using the selected programming language. The source program should be accurate, reliable, concise, and clear with high efficiency. In the programming step, the expressions of the detailed software design should be translated into the construction of the programming language. The Compiler accepts the expressions as the source code of the input, and generates the expressions as the output and the target code of the machine, then the compiler further translates the output target code into machine code, that is, real commands.

1. Graph Analysis



Ii. coding process and principles

(1). Select the appropriate language: to implement a large-scale software development, you may need to select one or more programming languages. Appropriate language selection will reduce coding difficulties, reduce program testing workload, and provide easy-to-read, easy-to-maintain software. Factors to consider when selecting a language. 1. project application field 2. complexity of algorithms and computing 3. complexity of data structures 4. Efficiency 5. Portability 6. Level of programmers 7. Construction of System Models.

(2). Encoding style: the encoding style is the programming technology used to write the source program and the logical structure and habits of the program code. A relatively large piece of software was written in collaboration. So many people cannot use their own styles when writing, and they must have a unified standard. This requires that the coding of time codes should be well readable. Good code readability is a prerequisite for cooperation and a prerequisite for later software maintenance.

During code writing, we should adjust the statement structure so that the structure of each functional module is clear, add comments appropriately, and use identifiers correctly to help us better understand the program.

(3). encoding principles: the principles of high efficiency include improving operational efficiency, improving storage efficiency, and improving input and output efficiency. All I/O operations should be buffered to reduce additional overhead for communication.

Summary

In the coding process, the programmer should first select the design language of the design program, select the design language as the prerequisite, and then consider the rules and steps in the coding process, A perfect code Visual organization can be formed in a good coding style, so that programmers can work together smoothly and programmers can easily understand the code. This gives them a comfortable feeling.

Software Engineering-coding

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.