10 effective ways to be a good programmer

Source: Internet
Author: User
Good programmers are people who look both ways when they cross a one-way street.

as a IT software for the industry Programmer , the daily hard work that drives us every day comes from our interest and passion for programming. But to make programming always interesting, we must learn to adhere to some of the basic principles of being a good programmer.

I'm not going to write some spells, you can be a good programmer by doing it. My goal is to write down some useful experiences that I have learned and used, and they help me get better results. There is no clear definition of good programmers, and here we refer to those who have created good IT Solutions and helped the industry grow.

10 effective ways to be a good programmer , Some things about the internet

0. Master the Basics

For any job in any industry, mastery is the key to success. A person who wants to be a good programmer must have a solid foundation. Understanding the core concepts will help you design and implement the perfect solution in the best way possible. If you feel that you can't master the core computer science or the knowledge of a programming language, it's not too late to start looking back at the basics.

1. Start labeling the code you've written ( what to do and what to do )

I find that there is a clear dividing line between good programmers and ordinary programmers, and good programmers are eager to delve into what each code does and how it is done. With a small group of people, they must understand each line of code. I know that if the time is very tense, we often cannot follow this principle, just write some code, know that it implements the required functions. How to deal with this situation is another topic, but as a programmer, we often have to explore as deep as possible. Believe me, it will become a habit over time and you will do it unconsciously every time.

2. Help Others, you can learn more

Many people have a common trait, and only when he needs help will he turn to the forum or group. The difference between good programmers is that they often browse forums to help others. They help others to learn more than they do by helping others to solve their problems. It is also the same in a team that helps others to solve problems and gain more. Believe me, understand other people's problems, think and ultimately provide solutions, you will learn more than before.

3. Write code that is straightforward and logical

as KISS Principles ( keep short and concise ) It is also suitable for programming, as it applies to every aspect of life. Try to write logical code that avoids complications. Sometimes people write complex code just to show that they are capable of writing such code. My experience tells me that simple and logical code is very good, produces fewer problems and is easier to scale. I remember a word:

The good code itself is the best document. When you want to annotate, ask yourself, "How can I improve my code so that I don't write annotations and read them ? " "

4. spend more time analyzing problems, and you'll spend less on solving them .

Spend more time understanding and analyzing problems before you design a solution. You'll find that the rest of the story is easy. Design does not mean to use modeling languages and tools, but to just look at the sky in the mind. Those who start knocking on the code in the face of a problem tend to deviate from demand eventually.

If you can't clear the structure of the entire program while you're in the shower, you're not ready to start programming. – Richard Pattis

5. be the first person to check your code

Although it is a little difficult, try to modify it before someone else modifies your code, and over time you will write almost no Bug the code. Do not have any biased checks on your code, and don't hesitate to let someone else check your code. Working with other good programmers and accepting their advice can help you grow into a good programmer.

6. don't get lost in the fast-changing world of technology

in the IT industry, I often meet many people, they are dissatisfied with the current job, and even leave it to pursue a new job, the reason is because they want to learn the latest technology. What we hear every day is new tools, interfaces, frameworks that make programs easier and faster. This is commonplace in the tech world and will always be the case. But the most basic core technology changes are much smaller than those of frameworks, tools, and interfaces. Like the sea, the sea on the surface of the waves tumbling, but the depths of the sea is quite calm, and there is a place for aquatic organisms to survive. So put yourself in the deep sea of the core technology. For example, in a Java enterprise Application, a new framework appears every week, but the core technology is constant, such as client - Server-based requests,MVS schemas,filters/servlets/jsp, data source bindings,XML parsing, and so on. So take the time to learn the core concepts rather than worrying about the emergence of a changing framework and tools. Believe me, with the foundation of the core technology, you will find it easier to learn new frameworks, tools, and interfaces.

7. The contingency plan will not last for a long time

In many cases, software engineers use contingency plans . ( may be insufficient time, may be the problem is not understood thoroughly or is lack of experience ) . But this often results in confusing code, lack of scalability and maintainability, and later wasting more time. Please start the implementation before you know the whole plan. I know there are situations where contingency plans are unavoidable, as if one should tell the truth, but you have to lie in some cases.

8. Read the documentation

Reading many documents is one of the most essential habits of being a good programmer. It may be product brochures,JSR,API documentation, tutorials, and more. Reading the documentation helps you get the basic knowledge you need to write better code.

9. You can learn the code of others

I've been in touch with some good programmers and they're IDE It's always on. JAVA source code, and is often read and consulted in daily work. They do this not only to satisfy the thirst for knowledge, but also to learn how to write good programs. Read and read the code of the well-known open source code that you think is reliable or more than your senior programmer, and you'll write a better program. ( Extended reading: "Reading good Code is a shortcut to improve the development ofdevelopers) "

Finally, I would like to say but did not list it on the above: do not compare with others

Comparisons with others often result in negative emotions and unhealthy competition. Everyone has his strengths and weaknesses. It is important to avoid weaknesses. I also often see some very basic programmers who are very low-level mistakes. So just compare yourself, list the areas you need to improve, and keep improving it. Programming is a very interesting thing, enjoy it.

Any idiot can write a program that a computer can understand, while a good programmer can write a program that someone else can read.

Free pick up LAMP Brother Lian Original PHP Video Tutorials CD / the About PHP "Essentials Edition, details of the consultation website customer service:

Http://www.lampbrother.net

Phpcms Two-time development http://yun.itxdl.cn/online/phpcms/index.php?u=5

Development http://yun.itxdl.cn/online/weixin/index.php?u=5

Mobile Internet server-side development http://yun.itxdl.cn/online/server/index.php?u=5

Javascript Courses http://yun.itxdl.cn/online/js/index.php?u=5

CTO Training Camp http://yun.itxdl.cn/online/cto/index.php?u=5

The above describes the 10 effective ways to become a good programmer, including the content, I hope the PHP tutorial interested in a friend helpful.

  • Related Article

    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.