Java novice programmers advanced programming 6 good habits of old drivers, how many do you have?

For new programmers, especially those who have just switched to programming, the rookie stage is undoubtedly the most painful stage. So, how can we get rid of immature and quickly grow into a senior code farmer?

Let's take a look!

 

1. It is important to lay a good foundation

Efficient learning does not mean taking shortcuts and shortcuts. For novices, the most important thing is to lay the foundation step by step. Only by learning more, practicing more, watching more, and really solid foundation, then can grow faster and go longer.

Second, read more official documents

Don't be scared by these words, the official documents are actually treasures.

When a mature technology is born, there can be no blogs or books, but there must be an official document. Undoubtedly, it must be the most accurate and real-time information. The people who write official documents are usually the developers of these technologies or software. They are the people who know these things best, so the documents written are not only of very high quality, but usually the content is also up-to-date.

Therefore, official documents are far more suitable for introductory learning than various blogs and forums on the Internet. When we encounter many problems and technical details, carefully review the official documents, and you will find that many problems and ambiguities will become clear.

Programmers should master the ability to learn a technology through official documents. With this ability, you will have the foundation to learn all other technical frameworks; and the original official documents can also exercise your self-study summary ability .

3. Communicate and share frequently

Three people, there must be my teacher! As a novice, you must maintain an empty cup mentality, be diligent in learning and ask, communicate more with colleagues, peers, especially experienced programming veterans. In many cases, just ask one more sentence to help you less travel Many detours make work more efficient.

Fourth, standard naming

IT World once launched a "programmer's most troublesome thing" poll. As a result, nearly half of programmers think that naming is the most troublesome thing.

Sometimes the code is written high, and when you name it, you start to let yourself go, gousheng, tiedan, xiaonaigou, i, j.... I write hi, and other people are confused when they read it.

Therefore, whether it is an internal variable or a global variable, you must form your own naming rule, and you can understand the meaning of the variable at a glance. Confusing or wrong naming not only makes it difficult for us to understand the code, but also misleads our thinking; on the contrary, a good naming can greatly improve the legibility of our code, and it can also greatly enhance the maintainability of the code.

By the way, I’m currently working as a Java developer, and I know the hardships and hardships of Java learning. If you are also learning Java now, understand Java, lack java materials, PDF documents, interview questions, etc., you can join my java technology exchange group 766328863 , which contains the materials I usually collect and organize, and there are many students who are learning Java technology. Friends, you can ask at any time if you don’t understand

 

Five, carefully comment

Like naming, there are two other things that make programmers headaches: writing comments and others not writing comments.

The reason for writing a comment is that when you are writing a certain program, you may remember clearly what is the mechanism and how to implement this paragraph, but when you write more and more programs, you will forget why it was like this in the first place. Writing, changing, and handing over are also very troublesome. Commenting the code can effectively avoid this situation. Comments not only allow people to understand the code, but even allow people who read the code to get more information.

Six, know how to persist

Speaking of persistence, it seems a bit clichéd, but this is an essential quality to be promoted from a novice to a veteran. Programming is a job that focuses on practical ability. It requires continuous practical operation to improve skills and project actual combat to improve experience.

Guess you like

Origin blog.csdn.net/chengxuyuan9527/article/details/115128099