How to improve your Java programming level ... __ algorithm

Source: Internet
Author: User
Original Address:How to improve your Java programming level (RPM) Author:Сомёо unknowingly do the software has been done for ten years, there is the joy of success, but also the pain of failure, but always dare not to call himself a master, because and my mind in the real masters than, is still too far. The world is not a shortcut to become a master, but some basic principles can be followed.

1. A solid foundation. Data structure, discrete mathematics, compiling principles, these are the basis of all computer science, if not master them, it is difficult to write high-level procedures. As far as I can see, people who study computer science are better able to write high quality software than other majors. The program is written by everyone, but when you find it difficult to improve, you should consider whether you should go back and learn these basic theories. Do not learn oop at the outset, even if you are proficient in oop, you may be helpless when you encounter some basic algorithms.

2. A rich imagination. Do not rigidly adhere to the fixed way of thinking, when encountering problems to think of several solutions to the problem, try other people never think of methods. Rich imagination is based on a wealth of knowledge, in addition to computers, more involved in other disciplines, such as astronomy, physics, mathematics and so on.

3. The simplest is the best. This is perhaps one of the principles that all science follows, and the complex principle of mass-energy interchange is a simple formula in Einstein's eyes: E=MC2. Simple methods are easier to understand, easier to implement, and easier to maintain. When you encounter a problem, you should prioritize the simplest solution and consider complex scenarios only if the simple solution does not meet the requirements.

4. Not a dead alley. When you encounter obstacles, may wish to temporarily away from the computer, look out the window scenery, listen to light music, and friends to chat. When I have a problem, I will play games, and it is the kind of violent fighting game, when the game is responsible for the part of the brain cells extremely excited, the responsible for programming part of the brain cells have been fully rested. When I get back to work, I find that these problems can be solved now.

5. The thirst for answers. The history of human science is a process of longing for answers, even if only a small part of the answer is worth paying. As long as you firmly believe that you must find the answer to the question, you will devote energy to explore, even if the final answer does not get, in the process you will learn a lot of things.

6. Communicate more with others. Three-person line will have my division, perhaps in a casual conversation with others, you can burst the spark of inspiration. It will give you a lot of inspiration to communicate with colleagues or friends in this line to see how others think about the same problem.

7. Good programming style. Pay attention to develop good habits, code indentation choreography, variable naming rules should always be consistent. Everyone knows how to exclude errors in the code, but often ignore the error of the annotation. Annotations are an important part of a program that makes your code easier to understand, and if your code has clearly expressed your mind, you don't have to annotate it, which is even worse if the comments and code don't match.

8. Toughness and perseverance. This may be the biggest difference between a "master" and a general programmer. A good programming is 99% sweat and 1% coffee. Masters are not geniuses, they are in countless days and nights honed out. Success can bring us great joy, but the process is extremely boring. You might want to do a test, find a list of prime numbers within 10000, copy them all down, and then check them three times, and if you can do this work uninterrupted, you can satisfy this one. So copying is also a good way to enhance memory!

These are a few suggestions for a future programmer's career and hope to help.

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.