10 effective ways to become a good programmer

Source: Internet
Author: User
10 effective ways to become a good programmer

A good programmer is the kind of person who needs to look at both sides even if he is on a one-way street. -- Doug Linder

As a php programmer in the IT industry, the motivation for me to go to work every day is the pleasure and passion for programming. However, in order to stimulate fun and get an everlasting pleasure, we need to learn and abide by some basic knowledge to become a good programmer.

Of course, the things I have summarized are not so powerful. you say that you can become a good programmer after learning it. that is impossible. This is just a shortcut from my experience. For the definition of outstanding programmers, IT can be understood as a programmer who can develop great IT solutions and promote the overall development of the industry.

1. master basic knowledge

Understanding concepts is the key to success regardless of any industry or job. Unless you have a strong conceptual foundation, you cannot become a good programmer. Understanding the core concepts helps you design and implement solutions in the best way. If you think that you have not mastered the specific concepts of core computer science and programming languages, it is not too late to go back and learn these basic knowledge.

2. add a label (how, what) to each code set you write)

I found that a very obvious line of separation between the advantages and disadvantages of programmers is whether there is such enthusiasm to know "what and how ". Some programmers know exactly how their code is executed and the execution results. I also understand that sometimes, due to time constraints, we have to take the next step immediately when we only know that the code can complete the work. Although this seems to be another topic for solving the problem, as a programmer, we should do our best to study the problem in depth to reach the highest level. Believe me, with the passage of time, you will develop this good habit without knowing it, and then benefit from it ..

3. Learn more by helping others

Most of us may only attend forums and groups when they need help. There is a line to differentiate whether programmers are excellent. excellent people often go to these places to help others. They can also learn a lot while helping others. If you are in a team, you should also help each other. Believe me, understanding other people's problem background, researching and proposing solutions will allow you to learn more and grow faster.

4. the code should be easy to write, easy to understand, and logical.

Just as in other aspects of life, The KISS (Keep it simple and short) rules also apply to the programming field. The code must have logic to avoid being too complicated. Some people write the code so complicated only to prove that they have the ability to write complex code. However, my experience tells me that simple and logical code can work effectively, with fewer problems and higher scalability. I remember one sentence.

Good code itself is the best document. Before you add a comment, ask yourself, "How can I improve the code so that you don't need to write this comment ?" -- Steve McConnell

5. spend more time analyzing problems and less time to fix them later

Spend more time understanding and analyzing problems and designing the best solution. then you will find that the next work will get twice the result with half the effort. The design process does not mean that you must use modeling languages and tools. It can also be very simple. for example, you can look up at the sky and brainstorm in your mind. Programmers who tend to write code as soon as they get the problem, the final results will often be different from the requirements.

If you do not have the overall structure of the program in your mind when taking a bath, it means that you are not ready to write code. -- Richard Pattis

6. first analyze and review your code

Although it is a little difficult, when others find out what they had previously known the problem, they can help you learn how to write code that is "close to bug-free. You must be fair and rigorous in your code review, and be able to accept others' review without hesitation. Working with excellent programmers and actively listening to their feedback will certainly help you become a good programmer.

7. never get frustrated with the ever-changing technologies

Recently, in the IT industry, many people I met-either disappointed with their work, or even resigned while looking for a new job-all agree that, they want to learn and use the latest technology. I think I can understand this wish, but I think it is not correct to use the word "latest. Every day, we can hear people say that "what new tools, APIs, frameworks, and other methods are coming out now" can make programming easier. This has always occurred in the technical field. What really needs us to focus on and understand is the transformation of core and basic technologies. On this basis, we can look at new frameworks, tools, and APIs. For example, many Java companies may change their web frameworks every week, however, the core concepts such as client-server communication mode, MVC mode, filters/servlets/JSP, resource binding, and XML parsing are still the same. Therefore, instead of worrying about changes in frameworks and tools, it is better to spend some time learning these core concepts. Believe me, on the basis of understanding these core concepts, we can grasp new frameworks, tools, and APIs more quickly.

8. emergency measures cannot be effective for a long time

In many cases, software programmers may adopt emergency and flexible solutions (or due to time constraints, lack of a deep understanding of the problem, or insufficient technical experience ). However, these contingency plans may corrupt the code, making it difficult to expand and maintain it later. I can understand that sometimes this situation is really difficult to avoid, but just as we should all tell the truth, if you tell a lie, you have to know that there is always a day of lies.

9. Read the document

One of the basic habits of excellent programmers is to read a large number of documents, technical indicators, JSR, API documents, tutorials, and so on. Reading this document lays the foundation for us to program in the best way.

10. learn others' code

I like to interact with excellent programmers who have java source code in the IDE, read/refer to their code. In this way, we can not only understand the basic knowledge, but also learn to write new methods for projects. Reading and referring to some reliable and known open source code or advanced code also helps us better program.

The last point is not listed above: do not compare with others

As the saying goes, comparing people with others will only lead to negative emotions and turn into bad competition. Each person has his own strengths and weaknesses. I have seen many times that some so-called special cow programmers also make stupid mistakes. Therefore, it is the right way to analyze yourself, list weaknesses, and strive to improve yourself.

Programming is a real pleasure and you are welcome to enjoy it.

Get the LAMP brother's original PHP video tutorial CD/detailed PHP Essentials edition for free. for details, contact the customer service on the official website:

Http://www.lampbrother.net


Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.