Programming: The way to Troubleshoot Better
In www.facebook.com/jamesbumanglag and in life every problem has at least two, three solutions.It is just a matter of persistence to find them regardless of the trouble of the problem.How to troubleshoot a problem?One of the best ways is to grab a bit of paper and write down the problem in a kind of a question.Why my script is returning an incorrect value?Brainstorm possible solutions:1) Enable (more detail by detail) recording (PHP, Web Server etc.) to get more details.2) Put the code through the debugger3) The code was working great a week before so what code did I write in last 7 days that may have caused the current issue?By wondering those questions your mind starts looking for answers.When troubleshooting a problem, we, the programmers set the cap of an investigator because we've to find the suspect that's creating the issue. Sometimes this might be one point or five. At the end it is very gratifying for discover the culprit.Paying attention to emotionsDuring the troubleshooting you should pay attention to the thoughts you have. This is a indication to avoid for several moments If you are just starting to get angry. When being upset this only decreases the potency of your trouble solving skills.Taking BreaksIt is far more efficient to end after one-hour of troubleshooting and then choose a stroll, drink water/tea/coffee or speak with colleagues (or check Facebook). Then get back to the job at hand. You'll feel more refreshed and prepared to attack the problem again but this time from a different perspective. It is quite stressful when then trying to resolve the problem in a single continuous test. Make sure that you drink lots of water. By going for a break and normal water more alternatives will provide themselves.Workaround solutionSometimes you'll have to be OK using a work-around solution since the *more correct* solution usually takes therefore enough time and the pc software release may be delayed.In conclusion, the developer's task isn't easy however if you have the right mind-set most of the knowledge can result in expansion. How? You will see cases when some bugs look at random times. These are very difficult to find.Additionally, a troubleshooting program may extend from several hours to 5 or more days.In order you to be healthy and live long you've to produce infinite number of patience.This is just a important skill to have.


首頁