Current location - Training Enrollment Network - Mathematics courses - Do you need physical knowledge to learn programming? ?
Do you need physical knowledge to learn programming? ?
There may be areas of need. .....

The following experience is very important, and what experts say is from the bottom of their hearts.

Software has become hot in China, programmers have become powerful, and more and more people have joined the ranks of programmers. The programmer's experience is also what many programming enthusiasts are eager to know. Introducing the experience and feeling of an "experienced person" may inspire programmers.

Unconsciously, I have been doing software for ten years, which has both the joy of success and the pain of failure.

I dare not call myself a master, because compared with the master in my mind, I am still far behind. There is no shortcut to becoming a master, but some basic principles seem to be followed.

1 solid foundation

Data structure, discrete mathematics, compilation principle, these are the foundations of all computer science. If you don't master them, it is difficult to write an advanced program. Everyone can write programs, but when you find it difficult to improve to a certain extent, you should think about whether to go back and learn these most basic theories. Don't learn OOP from the beginning, even if you are proficient in OOP, you may be at a loss when you encounter some basic algorithms. Therefore, it is very necessary to read more books on basic computer theory.

2 Rich imagination

Don't stick to a fixed way of thinking. When you encounter a problem, you should think of several solutions and try methods that others have never thought of. Rich imagination is based on rich knowledge.

Actually, besides computers, I also dabble in other subjects, such as astronomy, physics, mathematics and so on. An open mind is very important for programmers.

The simplest is the best.

This may be a principle that all disciplines follow. In Einstein's eyes, the complex principle of mass-energy conversion is simple, which can't be found in a simple formula: E = MC 2. Simple methods are easier to understand, implement and maintain. Give priority to the simplest scheme when encountering problems, and only consider the complex scheme when the simple scheme cannot meet the requirements.

Don't get to the bottom of it.

When encountering obstacles, stay away from the computer for a while, look at the scenery outside the window, listen to light music and chat with friends. Go back to play games when you encounter problems. When the cell in charge of the game is extremely excited, the cell in charge of programming gets a full rest. When I start over, I will find this problem easy to solve.

5 eager for answers

The development history of human natural science is a process of longing for answers, even if only a small part of the answers can be known, it is worth paying. As long as you firmly believe that you can find the answer to the question, you will devote your energy to exploration. Even if there is no answer in the end, you will learn a lot in the process.

6 communicate with people more.

There must be a teacher in a threesome, and perhaps in a casual conversation with others, generate can be inspired. It will be very enlightening to go online more to see other people's views on the same issue.

7 Good programming style

Pay attention to form good habits, indent code, and always keep the naming rules of variables consistent. Everyone knows how to eliminate errors in code, but they often ignore the arrangement of comments. Comments are an important part of the program, which can make your code easier to understand. If the code has clearly expressed your ideas, there is no need to add comments. It's even worse if the comments are different from the code.

8 toughness and perseverance

This is perhaps the biggest difference between a "master" and an ordinary programmer. A master is not a genius, but is honed in countless days and nights. Success can bring us great joy, but the process is really dull. You might as well do a test, find a list of prime numbers within 10000, copy them all down and check them three times. If you can finish this work continuously, you can meet this requirement.

Advice to people who dream of becoming programmers!