News for hackers. Stuff that matters.
Re:Programming Mistakes by rhapsodyv on Wednesday July 03, 2013 @11:17AM (#5985065)
+ Trial and Error

The most common error that I see is the programmer trying to make the code works, or trying to fix the error, using trail and error, instead of understanding the problem and make a better solution.

Re:Programming Mistakes by pjungwir on Wednesday July 03, 2013 @11:34AM (#5985205)
That's just what I wanted to say. I call it "debugging by superstition." I think there's a fine line between this and a useful hunch, but there is a difference. Superstitious debugging is rapid-fire, change-a-line-and-try-again. A hunch extrapolates from the evidence and your experience, and it leads to an experiment to prove or disprove it. In the sysadmin world, Rachel by the Bay has some great stories about following hunches.