It's so easy to just beat a program into submission - keep hitting the compile button and let the system find your mistakes, work at them one at a time. But machines have feelings, too!

Learn the age old art of "desk checking". Your compiler will thank you for it.

commented: :) +13

>Your compiler will thank you for it.
You mean your end users will thank you for it. What you described is called "Programming by Accident". It's a mindless approach to writing software that all programmers tend to default to because it's easier to do on autopilot. Unfortunately, too many professionals use it as their primary approach instead of turning on their brain and doing things the right way, which drives the average quality of software down considerably.