Software coding and Software Testing

Source: Internet
Author: User

Documents generated in the demand analysis and system design phases cannot be directly executed on the computer.ProgramAfter the design, executeCodeSo that the system needs can be truly realized.


System Analysis and Design are the beginning of program design. Practice has proved that problems in coding are mainly caused by problems in design. Therefore, we need to analyze and design before coding, and ensure the correctness and high quality of the design before coding. In the coding stage, programmers need to finish the design with high quality.


    • Structured Program Design:

Method: top-down and progressive refinement.

Definition: constructs a program using only three basic control structures: sequence, selection, and loop.

    • Programming Language selection:

Classification: machine language and advanced programming language.

  • Programming style:

    1. Internal program document writing rules: ① Select a distinctive identifier ② appropriate annotations ③ step-by-step program Layout
    2. Data description is easy to understand and easy to query: ① the order of data description should be standardized ② when multiple variables in the same statement are described, they should be arranged in alphabetical order. ③ When using a complex data structure, it is best to comment out multiple statements. ④ the variable description should not be omitted. The variable type, length, storage and initialization should be correct.
    3. Statement construction should be simple and clear: ① avoid writing multiple statements in the same line ② avoid complex condition tests ③ reduce the test on the "Non" condition ④ multiple branch structures can be larger first, the possibility is lower than that of the backend. ⑤ Avoid using loop nested statements and conditional nested statements in large quantities. 6. use parentheses to make the operation order of logical or technical expressions clear and intuitive. 7. Do not create an endless loop to avoid loops that cannot be executed.
    4. Input and Output statements should be reasonable
    5. Program Efficiency meets user needs

The Software Test content is as follows:


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.