How to become a good programmer

Source: Internet
Author: User
: This article describes how to become a good programmer. if you are interested in the PHP Tutorial, refer to it. How to become a good programmer
Today, the information technology tells the development of the times, the programmer industry has become an indispensable part of this technology trend. However, every programmer has to learn how to keep growing from the beginning of programming, and how to keep himself ahead of the technology trend without being eliminated, the following 10 points can help you become a better programmer.
1. do not repeat. This is a great principle worth following. I used to go back and check my own code and refactor the parts that were used multiple times. Although it is difficult to break down a long method into several short methods. Ctrl + R + M is very useful in visual Studio and can help you refactor the code as a separate method. This makes the code more reusable and testable.
2. the main point of naming variables is to illustrate what they are, rather than what type of data they are. The only exception is that if you are processing others' code and need to continue to participate, you should follow their naming rules.
3. give your method a name clearly indicating what they want to do. If this article is done well, it will greatly reduce the need for comments. If your code is clear and easy to read, you need to comment out what else to do.
4. do not use odd numbers or string constants. Your code should not contain any numbers or string values that may cause misunderstanding or need to be guessed. When creating constants, enumerations, and private variables, give them a name that is easier to understand.
5. if possible, write the method by yourself. in this way, the method will not be dependent on other parts of the application during testing. You do not need to focus on where to call the method. This will make the code more measurable and reusable.
If you are using session values or app-set values, pass them as variables to get Sessions and configure values when you call methods. This makes the code more measurable.
6. do not be afraid to seek help. This sentence does not allow you to seek help when you encounter all the problems. I mean, first, you have to think about it and try to solve the problem yourself. but if you really cannot find a solution, so we should seek help from others. Someone may have experienced this problem and know how to solve it. At the same time, when you tell others what you are doing, what kind of results you are looking forward to, and what the problem is, you may find the key to the problem when it doesn't work well.
7. no delay. If you see bugs or garbled characters, you can solve them and move on. Do not think about doing it later or letting others do it.
8. share knowledge with others. Do not trust yourself. Try to create a culture of mutual assistance. You will find that the team is more efficient than a single person, and the atmosphere of mutual help can improve their respective levels faster. Your colleagues' progress will not make you fall behind or lead you to risks of being fired. On the contrary, you become more valuable, because you not only possess profound knowledge, dare to learn, but also can help people around you improve together.
9. when your colleagues are immersed in thinking, do not interrupt them. Don't do what you want. when you are immersed in programming, when your brain is working at high speed, just as you are carefully building a house with cards, you don't want anyone to disturb you either. If someone asks you a question, your attention will inevitably fail, just as the House may collapse easily. This may take 5 to 10 minutes to concentrate and straighten out your thoughts. However, you only need to search for the problem or ask someone else to solve it. If you respect your colleagues and let them know the importance of doing so, they will also do the same thing, which in turn will make you more efficient.
10. actively face criticism rather than passive resistance. For me, criticism is an opportunity for me to improve. If there is another way of doing things that I did not think of, then I will want to understand it, because it may help me improve myself.
Now, we have told you about the 10 golden rules. let's learn about them and use them to create better programmers!
Brotherhood Gao Luofeng free apprentice: http://www.hdb.com/party/lzcw-comm.html
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
[IT education] video tutorials (courseware + Notes + video) on PHP, Linux, HTML5, UI, and Android are available )!
Network disk tutorial Download: http://pan.baidu.com/s/1sjOJiAL

The above describes how to become a good programmer, including some content, and hope to help those who are interested in PHP tutorials.

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.