Program code is also a process of software design. The difference is that the program code converts the previous detailed design into the program code implemented in the programming language. In the program coding stage, follow the top-down and step by step refinement method.
The program code mainly introduces a good program standard, a program evaluation and a program design style to us!
General principles: first, first, right, then fast, first, and then fast, never forget to keep the program correct, keep the program clean for fast, and never sacrifice clarity for efficiency.
Good program standards: easy to test and debug, easy to maintain, easy to modify, simple design, high efficiency.
Program Design Quality Evaluation: correctness, clear structure, easy modification, easy modification, simple.
Programming style: the source program is documented, including the naming of standard characters, related comments, visual organization of the Program (typographical); data description, statement structure, input/output, simple input requirements, consistent and free-format input as much as possible; output requirements indicate output data and necessary descriptions.
The program we finally developed is delivered to users. The program is like an article for people to read. We should have a good style and write the program strictly according to the standard, in this way, the user will like your program.