If you are a Cainiao who is learning programming like me, the following ten good habits will be shared with you. 1. design planning is now the world of modular program design. The goal of an application is the pyramid tip. the significance of Program Design planning is to divide the basic modules that constitute the pyramid, the more detailed the planning, the clearer the module division of labor. the easier it is to understand that if you are a Cainiao who is learning programming, the following ten good habits will be shared with you.
1. design planning
Today is the world of modular program design. The goal of an application program is the pyramid tip. the significance of Program Design planning is to divide the basic modules that constitute the pyramid. the more detailed the planning, the clearer the module division, the easier it is to understand what to do next. this is like building blocks. you can combine your blocks into various shapes, first, you must be familiar with the functions of each block.
2. be prepared
Before practice, we should first look for several examples of program research, at least understand how to start, how to end, do not fight unprepared.
3. sunflower collection
A simplified list of the language used, including basic data types, operators, basic statement structures, common keywords (reserved words), and common functions (controls.
4. Free and Independent
Create a separate directory for your application to facilitate application file management. if you want to migrate "home" to the application, you can simply roll up and leave.
5. known and known
When the program is small, there will be no less variables to use. it is an old topic to name variables. the advantage is obvious. We recommend that programmers use the Hungary naming method, which makes your naming work easy and professional.
6. beauty of symmetry
The Chinese pay attention to the beauty of symmetry. it is also suitable for programming. if the program uses A loop nested B judgment, and B judgment contains A C loop and other structures, remember to use the indentation method, align A: ENDDO with A: DO, B: ENDIF and B: IF ...... In this case, indentation is performed sequentially. In short, symmetry is equal to beautiful and easy to read.
7. add more annotations
Do not bother to comment out the functions of custom variables, functions, and subprograms in the program. It would be very troublesome if I couldn't even understand what I wrote after June 1, March 5.
8. Environmental Protection
If the application needs to modify the system settings, remember to save the settings before the application starts, and restore the settings after the application ends. do not pollute the environment.
9. tailism
The power of a person is limited, and the power of everyone is unlimited. I usually look at some technical materials. if I happen to have good experience and clever methods, I would like to use them.
10. the Ninja is invincible.
When you think that the program code is "" correct, and the compilation and execution of the program is faulty, you are basically confused, you must endure it, take a break, and try again. don't give up! I believe that the final victory belongs to you!
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.