These are names that are talked about by countless people in the IT industry. Here, from the perspective of a professional programmer, the author would like to talk to you about my feelings.
Why you should be a programmer
Mentioning this question seems to make people feel too simple and too naive. Looking at the comfortable working environment, generous salaries, and "happy" white-collar lives of programmers today, everything seems self-evident. In fact, this is only seeing the programmer's side. The other side of us is not noticed by the public: working day and night, working overtime all night is commonplace; dealing with keyboards all day long, how many people have personal experience of these boring lives? Without the persistence of the software industry itself and the almost pilgrimage-like obsession with source code, ordinary people would not be able to bear all this. But when your program completely passes the test, it becomes a qualified product. How is the joy at this time?
There are rules and rules
Program development is a very flexible job. For example: variable I increases by 1. In C language, it can be written in various ways: I++, ++I, I+=1, I=I+1, etc. However, this does not mean that programming can be done as you please. Good programming habits can improve work efficiency and reduce unnecessary mistakes. Especially for beginners, what you need to pay attention to is:
The first point: When programming, you must first establish a good data structure. When programming, if the data structure design is wrong at the beginning, you will have to spend a lot of money to modify the program later. The author himself once had such a painful lesson: I wrote more than 2,500 lines of a program, and suddenly found that the basic data structure was unreasonable, and ended up overturning and rewriting it all. “Whether the sword is sharpened, the woodcutter is not lost”
Second point: reuse and modularize code as much as possible. Whether it is process-oriented or object-oriented, code reuse is one of the basic principles. For example: If you want to draw a green apple and a red apple, write a function to draw the apples and pass the color as a parameter. In this way, apples of different colors can be drawn by calling the same function and passing different parameters. The first advantage of this is the program?
The third point: good writing style. A program cannot be absolutely perfect and never need to be modified in the future. Since you want to modify it, you must reread and understand the original code. A good programming style can make people understand the structure of the program more conveniently and quickly, thus maximizing the efficiency of modification. Here, the author cites some better programming style requirements: 1. Unifying Count is obviously easier to understand its true logical meaning and data type than calling it iii. Therefore, add a few more letters to the names of variables and functions to make them more meaningful and easier to understand in the future. 2. Layer-by-layer indentation format of the code. This has almost become a standard. This format makes the hierarchical relationship between the codes very obvious, and the logical understanding of the program and the orderliness of the code location. Collect the codes for related functions and put them together so that when reading the code in the future, you can try to avoid frequent switching between different file modules. Because it is not conducive to understanding due to the test. If there are indeed too many loops and the code is too long, you should consider re-dividing it into finer sub-functions. Of course, there are more to good programming styles than these, which also need to be slowly realized during the learning process.
Point 4: Pay attention to program testing and exception handling. This is often a clear difference between amateur programming enthusiasts and professional programmers. Amateur programming enthusiasts often only focus on the normal operation of the program, while professional programmers must also pay attention to the normal operation of the program under abnormal circumstances, or at least the normal termination. And this is based on a full understanding and testing of the program?
A journey of a thousand miles begins with a single step. Being a programmer has more twists and difficulties. But as long as you really love software development and are willing to pay for it, you will eventually experience the fun. Come on, why are you hesitating? Let’s embark on this path of being a programmer and move forward with your head held high!
What should you learn first when learning programming?
For the majority of programming beginners, there is a common understanding: learn programming and choose a programming language
It’s very important. It refers to some of the more popular development tools such as VisualBasic, Visual C++, Delphi, and Power Builder. I often see beginners asking: If I want to learn C/C++, is it better to learn Visual C++ or Borland C++ Builder? Or just ask to choose between Visual Basic and Delphi. What is the relationship between learning programming and learning programming languages? How should beginners choose? Let's make a simple analogy: learning programming is like learning shooting, and programming languages correspond to various firearms such as guns, pistols, and rifles in shooting. To learn to shoot, you must choose a firearm. It is impossible to learn to shoot well without a gun, and it is impossible to learn to use all firearms at the same time. However, if you master the shooting of one kind of firearm, learning other firearms will be by analogy. Because while becoming familiar with a firearm, you also learn the shooting technique itself. If you learn other things, you will get twice the result with half the effort. The same is true for learning programming. You must start by learning a programming language. At the same time, in the process of learning?
Recommendation: You don’t have to start with a certain language to learn programming. You can choose between Visual Basic, Delphi, Borland C++ Builder or Pascal, Turbo C (or Borland C) under DOS Learn the one that is easier for you to accept. What I mainly learn from it is the idea of programming itself, and what I learn is to look at problems from the perspective of programming. Perhaps, the effect of learning cannot be seen immediately, but you can learn solid basic skills, which will be of great benefit to further development in the future. These basic skills include:
Get LAMP Brothers’ original PHP tutorial CD/"Essential PHP in Details" for free. For details, please contact the official website customer service: http://www.lampbrother.net
PHPCMSSecondary development http:/ /yun.itxdl.cn/online/phpcms/index.php?u=5
WeChat development
Mobile Internet Server Side Development http://yun.itxdl.cn/online/server/index.php?u=5
Javascript
Course http://yun .itxdl.cn/online/js/index.php?u=5
CTO
Training Camp
|