First explain why I think about it. I have been away from school for some time, after a few interview several times cramming and the various problems encountered, the community told me, how to do less detours? How to get yourself to write the right code. In fact, it seems to me that every programmer will think about things.
One: "How to make yourself less detours"
A great programmer or architect, or a CTO, if you want to ask them how to make rapid progress? They say to you, "tired code"; Yes, yes, yes! A qualified programmer is the one that accumulates the steps from the simple code.
But if a programmer repeats the code is always that a few commonly used rotten, we can imagine, these are not as good as the experience of a bug to get more! For a simple example, for each linear table class object (Ex:array,linklist,arraylist,stack,set,.. ) and key-value pairs of class objects (HASHMAP, etc.), if you will basic traversal and additions and deletions to the operation, first of all I would like to congratulate you you can do something for the company, but some programmers in the company for almost a year to find that they have been writing this several bird things. Sometimes do not think directly directly choose their own skilled objects to achieve business logic, we think that has been so good? You go back and think about the collection object you chose, to ensure that memory performance is not deteriorating? Is it possible for the system to occupy a large amount of data garbage at this point when it is running? Here you may understand a little bit how to improve their programming level, not only write code, but with thinking with questions to write their own code, there is not blindly to choose their familiar technology to measure a business logic, you can from the system of light weight, memory optimization direction to think, How to make yourself write less code, become more incisive, or let your own code for the entire system to accelerate! Extra points!
"Write the correct and meaningful code"
I'm going to give you another one, Java exception handling everyone knows, but different people on the exception of the crawl and processing is not the same, most of us know try-catch-finally to catch the abnormal part and print out the exception, just easy to grab and print it? What would a seasoned programmer do? Reasonable to write the exception part of the code, there is a problem, through the output can know the problem point and know how to solve. It can be said that for all of the Java technology points are applicable, we have to think about how to do so that we have a deeper understanding of this point, so that we can use it to surprise.
The author is not what Daniel, just a good summary of the fluffy hand, Java on the road, there you have me enough. Do not like to touch.
Aesigned by Ankermaker
On "The Advanced Path of Java Programmer" How to do less detours, write the correct and meaningful code.