>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.