Ten effective ways to become a good programmer

Source: Internet
Author: User
: This article mainly introduces ten effective methods for becoming a good programmer. if you are interested in PHP tutorials, please refer to them. A good programmer is a person who looks at both sides of a one-way street.

As a software programmer in the IT industry, what drives us daily hard work comes from our interest and passion for programming. But to keep programming interesting, we must learn to stick to the basic principles of becoming a good programmer.

I don't want to write some spells. you can become a good programmer by following the instructions. My goal is to record some useful experiences I have learned and used, and they help me get better results. There is no clear definition of good programmers. here we refer to those who have created excellent IT solutions and helped the industry grow.

Ten effective ways to become a good programmer, something about the Internet

0. master the basics

Integration is the key to success for any job in any industry. A person who wants to become a good programmer must have a solid foundation. Understanding the core concepts will help you design and implement the most perfect solution in the best way. If you feel that you cannot grasp the core knowledge of computer science or a programming language, it is not too late to review the basics.

1. start labeling the code you have written (how to do and what to do)

I found that there is a clear line between a good programmer and a common programmer. a good programmer is eager to learn more about what each line of code has done and how to implement it. A small group of people must understand every line of code. I know that when the time is very short, we often don't follow this principle, just write some code and know that it implements the required functions. How to deal with this situation is another topic, but as a programmer, we often need to explore it as deeply as possible. Believe me, over time this will become a habit, and then you will do this without knowing it.

2. to help others, you can learn more

Many people share a common feature. they seek help from forums or groups only when they need help. The difference between excellent programmers is that they often browse forums to help others. Compared to solving problems with others' help, they help others to learn more. The same is true for a team, helping others solve problems and gaining more. Believe me, understand others' problems, think about and finally provide solutions. you will learn more than you have learned before.

3. easy-to-understand and logical code

Just as the KISS principle (keep short and concise) applies to all aspects of life, it also applies to programming. Write logic code as much as possible to avoid complexity. Sometimes people write complex code only to demonstrate their ability to write such code. My experience tells me that simple and logic-rich code is very good, with fewer problems and easier extension. I remember one sentence:

Good code itself is the best document. When you want to add comments, ask yourself, "How can I improve my code so that you can understand without writing comments ?"

4. spend more time analyzing problems and you will spend less time solving problems.

Spend more time understanding and analyzing problems, and then design a solution. You will find that the rest is easy. Design does not mean to use modeling languages and tools, but simply look at the sky in your mind. Those who start coding when they encounter problems tend to eventually deviate from their needs.

If you cannot clarify the entire program structure during the bath, you are not ready to start programming. -Richard Pattis

5. become the first person to check your code

Although it is a little difficult, try to modify it before others modify your code. Over time, you will write code with almost no bugs. Do not hesitate to let others check your code. Working with other excellent programmers and accepting their opinions can help you grow into a good programmer.

6. don't get lost in the fast changing technology World

In the IT industry, I often see many people who are dissatisfied with their current jobs and even leave IT to pursue new jobs because they want to learn the latest technologies. Every day, we hear about new tools, interfaces, and frameworks, making programs simpler and faster. This is common in the technological world and will always be the case. However, the fundamental and core technological changes are much smaller than those of those frameworks, tools, and interfaces. Like the sea, the sea is on the surface, but it is quite calm in the depths of the sea, where it is the place where aquatic life lives. So place yourself in the depths of core technologies. For example, in Java enterprise applications, a new framework will appear every week, but the core technology remains unchanged, such as client-server-side requests and MVS mode, filters/servlets/JSP, data source binding, XML parsing, and so on. Therefore, it takes time to learn core concepts, rather than worrying about the emergence of ever-changing frameworks and tools. Believe me, with the foundation of core technologies, you will find it easier to learn new frameworks, tools, and interfaces.

7. emergency plans will not last for a long time

In many cases, software engineers adopt contingency plans (which may be due to insufficient time, incomplete understanding of problems, or lack of experience ). However, this often results in code chaos, lack of scalability and maintainability, and later wasted more time. Please start implementation after you know the entire solution. I know that emergency plans are inevitable in some cases, as if you should tell the truth, but you have to lie in some cases.

8. Read the document

Reading many documents is one of the essential habits of excellent programmers. It may be the product manual, JSR, API documentation, tutorials, etc. Read the document to help you get the necessary basic knowledge and write better code.

9. you can learn other people's code

I have been familiar with some excellent programmers who keep keeping the JAVA source code in the IDE and read and view it frequently in my daily work. They not only satisfied their desire for knowledge, but also learned how to write excellent programs. Read and view the code of open-source code or later programmers that you think are reliable, and you will write better programs. (Extended reading: Reading Excellent code is a shortcut to improve developers' practice)

Finally, what I want to say is not listed above: do not compare it with others.

Comparison with others often results in negative emotions and unhealthy competition. Everyone has his strengths and weaknesses. It is important to develop strengths and circumvent weaknesses. I also often see some very low-level errors for programmers who have excellent foundations. So just compare it with yourself, list the areas you need to improve, and continue to improve it. Programming is very interesting. enjoy it.

A fool can write programs that computers can understand, while a good programmer can write programs that others can understand.

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

PHPCMS secondary development http://yun.itxdl.cn/online/phpcms/index.php? U = 5

Develop http://yun.itxdl.cn/online/weixin/index.php? U = 5

Mobile internet server development http://yun.itxdl.cn/online/server/index.php? U = 5

Javascript http://yun.itxdl.cn/online/js/index.php course? U = 5

CTO training camp http://yun.itxdl.cn/online/cto/index.php? U = 5

The above describes ten effective methods to become a good programmer, including some content. I hope my friends who are interested in the PHP Tutorial can help me.

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.