"Top Ten Good habits" programmed by rookie

zhaozj2021-02-16  159

Source: Ningxia Information Port

If you are like me, it is a rookie who is learning programming, then the ten good habits below are born with you. 1. Design planning

It is now the world of modular programming. The target to achieve is the pyramid tip. The meaning of programming plan is to divide the basic module constituting the pyramid. The more detailed, the more clear the division of the module, the more easy to understand What should I do next, this is better than the game of building blocks, you can combine your building blocks into a variety of shapes, but you must first be familiar with each block of blocks.

2, there is no problem

Before acting, first find a few sample procedures research research, at least how to start, how to end, don't be prepared.

3, Sunflower Collection

Do a streamlined list of programs, including basic data types, various operator descriptions, basic statement structures, common keywords (reserved words), common functions (controls), and more.

4, free independence

Establish a separate directory for your app, which is convenient for application file management, and if you want to move "home" to the program, you can take it away.

5, see the name of the name

The program is small, and the variables used will not be less. The names of the variable should be seen that the name is an old topic, and the benefits are obvious. Recommended programmers use the Hungarian Name Law, which will make your starting work easily, and quite professional.

6, the beauty of the symmetry

Chinese people pay attention to the beauty of symmetry, and use it in programming. If the A cycle nested B judges in the program, B judges the structure, which includes C cycles, remembers the use of the retransmission, let A: enddo align A : Do, b: Endif Align B: if ..., such, sequentially indent, in turn, the symmetry is equal to the beautiful addition.

7, more annotations

For the custom variables, functions, and subroutines in the program, don't be troublesome. If you have passed March, even what you wrote, you can't understand it, then you can trouble.

8, environmental protection

If the application needs to modify the system settings, save the settings before the application is started, and then restore the settings after the application, do not pollute the environment.

9, brought

A person's power is limited, everyone's power is unlimited, usually look at the Tianji.com developer network, if you happen to have a good experience, a clever method, use the segment, may wish to take it.

10, Ninja invincible

When you think the program code is correct, the program is compiled with 100% problem, you basically belong to the pain, I have to endure, I will stop, the weight, don't give up! I believe that the final victory belongs to you!

转载请注明原文地址:https://www.9cbs.com/read-7907.html

New Post(0)