Advanced programming novice programmers old driver of six good habits!

       Meng for new programmers, especially beginners just switch to programming, the rookie stage is undoubtedly one of the most painful phase. So how do you get rid of immature, rapidly growing as a senior code farmers do?

First, it is important to lay the foundation

       Efficient learning is not meant to take a shortcut, a shortcut. For starters concerned, first and foremost thing is definitely a step by step to lay the foundation. Only to learn, more training, more to see, really solid foundation, so before it can grow faster, go longer term.

Second, look at official documents

       Do not be scared words, official documents are actually treasure.

       The birth of a mature technology, no books may not have a blog, but there will be an official document, no doubt, it must be the most accurate, most real-time data. The people who write official documents, that usually is that these technologies or software developers, they are those things most people know, it is not only written document quality is very high, usually the contents are up to date.

       Therefore, various official documents than online forums, blog and more suitable for study entry. When we encounter a lot of problems and technical details when the official document carefully go over, you will find a lot of problems and vague understanding of the place will clear up.

       Programmer should master the ability to learn a technique through official documents, mastered this ability, you will have the basis to learn all other technical framework; and authentic official documents, but also to exercise your self-learning ability summary .

Third, regular exchange and sharing

       Three rows, must be my teacher! As a novice, but also to keep the empty cup mentality, inquisitive, with colleagues, peers, especially programming veteran experienced a lot of communication, a lot of time, ask a word, can help you take a lot less detours, work more efficiently.

 

Fourth, the specification named

       IT World who had initiated a "programmer most difficult thing" vote result, nearly half of the programmers think naming is the most difficult thing.

       Sometimes code written Hey, the name when he started flying self, gousheng, tiedan, xiaonaigou, i, j ..... he is writing Hey, other people to read up on the ignorant force a.

       So, whether it is internal variables or global variables, must form their own kind of naming variables can understand the meaning of a glance. Confusion or error code named not only make us difficult to understand, it will mislead our thinking; on the contrary, a good name, you can greatly improve our code readability, but also greatly enhance the maintainability of the code.

Fifth, earnestly comments

       And named as programmers have also had two things: write notes and others do not write comments.

       The reason to write a comment, because when you're writing a program, it may remember very clearly the moment, this period is what is the mechanism, how to achieve, but more and more when you write a program, you will forget why would this write, change and transition is also very troublesome, the code comments can be effectively avoided. Comments can not only make people understand the code, and even allow people to read the code for more information.

Sixth, know how to persist

       Speaking persist, it seems a bit cliché, but it is an essential quality veterans from novice promotion. Programming is a key focus on practical ability to work, we need continuous practice to upgrade their skills, it is necessary to enhance the combat experience through the project.

       For those who love programming, there are a group of small partners together to learn is very important! If you are interested or in need, then we have a zero-based programming learning portal exchange club , as well as learning video files, are welcome beginners and advanced in little friends!

Published 520 original articles · won praise 132 · views 80000 +

Guess you like

Origin blog.csdn.net/HUYA69/article/details/105117030