Eight conditions you should have to become a programming master

Summary:  Eight conditions you should have if you want to become a programming master

1. A solid foundation

Data structures, discrete mathematics, principles of compilation, these are the foundations of all computer science, and it is difficult to write high-level programs without mastering them. Everyone can write programs, but when you find that it is difficult to improve your writing to a certain level, you should think about whether you should go back and learn these basic theories. Don't learn OOP at the beginning, even if you are proficient in OOP, you may be helpless when you encounter some basic algorithms. Therefore, it is very necessary to read some books on the basic theory of computer.

2. Rich imagination

Don't stick to a fixed way of thinking. When you encounter a problem, think about several solutions to the problem, and try methods that others have never thought of. Rich imagination is built on the basis of rich knowledge. In addition to computers, many other disciplines are involved, such as astronomy, physics, mathematics and so on. An open mind is important for programmers. If you want to learn Java, you can come to this group. The first is 220, the middle is 142, and the last is 906. There are a lot of learning materials for download.

3. The simplest is the best

This may be a rule that all sciences follow. In Einstein's eyes, the complex principle of mass-energy conversion is nothing but a simple formula: E=mc2. Simple methods are easier to understand, easier to implement, and easier to maintain. When encountering a problem, the simplest solution should be given priority, and the complex solution should be considered when only the simple solution cannot meet the requirements.

4, do not drill the horns

When you encounter obstacles, you might as well stay away from the computer for a while, look at the scenery outside the window, listen to soft music, and chat with friends. When I encounter a problem, I will play games. When the part of the brain cells responsible for the game is extremely excited, the part of the brain cells responsible for programming is fully rested. When I get back to work, I will find that those problems are now solved.

5. The thirst for answers

The history of human natural science is a process of craving for answers, and even knowing only a small part of the answer is worth our effort. As long as you have a firm belief that you must find the answer to your question, you will spend your energy to explore, and even if you don't get the answer in the end, you will learn a lot in the process.

6. Communicate with others more

There must be a teacher in the three-way trip. Perhaps a spark of inspiration can be sparked in a casual conversation with others. Go online more and see what other people think about the same problem, it will give you a lot of inspiration.

7、良好的编程风格

注意养成良好的习惯,代码的缩进编排,变量的命名规则要始终保持一致。大家都知道如何排除代码中错误,却往往忽视了对注释的排错。注释是程序的一个重要组成部分,它可以使你的代码更容易理解,而如果代码已经清楚地表达了你的思想,就不必再加注释了,如果注释和代码不一致,那就更加糟糕。

8、韧性和毅力

这也许是“高手”和一般程序员最大的区别。高手们并不是天才,他们是在无数个日日夜夜中磨炼出来的。成功能给我们带来无比的喜悦,但过程却是无比的枯燥乏味。你不妨做个测试,找个10000以内的素数表,把它们全都抄下来,然后再检查三遍,如果能够不间断地完成这一工作,你就可以满足这一条。

1dc9000507912e055947原文链接

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=326626758&siteId=291194637