Ten let you be an effective method of elite programmers

IT industry as a software programmer, drives us day after day of hard work every day, from our interest and passion for programming. But let the program become always interesting, we must learn to become a good programmer adhere to certain basic principles.

I do not want to write some spell, you follow the implementation can be an excellent programmer. My purpose is to record and I learned some useful experience used, they helped me get a better result. For good programmers are not explicitly defined, here we are referring to those who create outstanding IT solutions and those who help the growth of the industry.

61be94c2002548668fe0eb6c13d75ea1
  0. master the basic

For any job in any industry, mastery is the key to success. Who wants to become a good programmer, there must be a solid foundation. Understand the core concept will help you design and implement the best way to use the most perfect solution. If you feel unable to grasp the core of knowledge in computer science or a programming language, now on the basis of that review is not too late.

1. Start label is the code you have written (how to do, what to do)

I found that there is a clear dividing line, good programmers eager to get to the bottom of each line of code done, and how good programmer and between ordinary programmers. So there is a small group of people, they have to understand every line of code. I know that if time is tight, we often can not follow this principle, just write some code, knowing it implements the required functionality. How to handle this situation is another topic, but as a programmer, we often want to further explore possible. Believe me, over time it will become a habit, after every time you will unknowingly done so.

2. To help others, you can learn more

Many people have a common characteristic, only when he needs help, he will resort to the forum or group. The difference is that they are good programmers would often visit the forum to help others. Compared to rely on others to help solve the problem, they help others to make the frame households own to learn more. The same is true in a team, helping others solve problems gain more. Believe me, understand the problems of others, think and ultimately provide solutions to it, you'll learn more than before.

3. Write straightforward, logically code

As the KISS principle (keep the dapper) applies to all aspects of life, it also applies to programming. Try to write the logic of the code, to avoid complications. Sometimes people write complex code just to demonstrate their ability to write code. My experience tells me that a logical, simple and very good code, fewer problems occur, but also easier to expand. I remember saying: www.hengyzs.com

Good code is its own best documentation. When you want to add comments, ask yourself, "How can I improve my code can not write comments also read it to understand it?" Www.kuangjiaduankouhu.com

4. Spend more time analyzing the problem, you will spend less time solving problems

Spend more time to understand and analyze the problem, then design it. You will find the rest of the things are easy. Design is not said to use modeling languages ​​and tools that can only be conceived in the mind at the sky. Those who are having problems began to sound the code tends to deviate from the final demand.

If you're in the shower can not sort out the structure of the entire program, then you are not ready to start programming. - Richard Pattis

5. Be the first person to check your code

Although there is a little bit difficult, but try to modify it before anyone else can modify your code over time, you will write almost bug-free code. Code you do not have any prejudice to check, and do not hesitate to let others check your code. And other good programmers work together, to accept their opinions to help you grow into a good programmer.

6. Do not get lost in the rapid change of technology in the world

In the IT industry, I often meet many people, their dissatisfaction with the current work, or even leave it to pursue new work, the reason is because they want to learn the latest technology. We hear every day is a new tool, interface, frame, allowing the process simpler and faster. This is common in the tech world and will remain so. But the basic core of technological change is much smaller than the change in those frameworks, tools and interfaces. Like the ocean, rolling waves on the sea surface, but deep sea is quite calm, but there is the local aquatic life to survive. So will you yourself in the depths of the sea, the core technology of it. For example, in Java enterprise applications, will appear every week new framework, but the core of the technology is the same, for example, based on a client - server-side request, MVS mode, filters / servlets / JSP, data sources tied set, XML parsing, and so on. So take the effort to learn the core concepts, rather than worry about the rapid emergence of frameworks and tools. Believe me, with the foundation of core technologies, you'll find learning new frameworks, tools and interfaces become easier.

7. The contingency plans will not last long

Many times they will use the software division contingency plan (probably lack of time, the problem may be not a thorough understanding or lack of experience). But the results so often brings, the code confusion, lack of scalability and maintainability, then waste more time. Please begin in before you clear the entire program. I know that in some cases emergency plan is inevitable, like, a person should tell the truth, but you have to lie in certain situations.

8. Read the documentation

Read many files as good programmer is one of the essential habits. May be the product brochures, JSR, API documentation, tutorials, and so on. Read the documentation to help you acquire the necessary basic knowledge to write better code.

9. You can learn from others code

I have come across some excellent programmers, they have been placed JAVA source code inside the IDE, and often read and review on a daily basis. They do so not only satisfy our thirst for knowledge, but also learn how to write good programs. Read the review and those you believe to be reliable well-known open source code or than you experienced programmer's code, you will write even better program. (Further reading: "Reading the code is to improve a shortcut outstanding developer of repair")

Finally, I want to say but did not bring it to the top: Do not compare with others

Compare and others often leads to negative emotions and unhealthy competition. Everyone has his strengths and weaknesses. It is important weaknesses. I often see some very powerful programmer Fan base very low-level errors. So just yourself and compare your own list areas for improvement, and continually improve it. Programming is a very interesting thing, enjoy it.

Any fool can write a computer program can understand, but was able to write good programmer can read it to understand someone else's program.

Good programmer is through the one-way street when people will look to both sides.

Author: fish
reprint: Front Lane

Guess you like

Origin blog.csdn.net/RedmiPro/article/details/91492259