FREE Subscription to Dr. Dobb’s Digest: Same Great Content, New Digital Edition
Site Archive (Complete)
C++ Blog: Know Your Syntax
C++
void main(void)

Calls, Returns and In-Between.

by Kevin Carlson
SELECTIVE IGNORANCE

Finding the Signal in the Noise

by Andrew Koenig
May 24, 2006

Know Your Syntax

I'm married to an English teacher, and in fact I was an English major in college, myself. So I'm WAY more familiar with the rules of English grammar than I'd like. Like most folks, though, I slip occasionally. That's okay on the odd blog entry, but not so good when compiling code.

You see, the human mind is a lot better at dealing with ambiguity, unclear antecedents, and subject-verb disagreement than is a compiler. Pete Becker brings this point home in his piece Living By the Rules. It's about more than simple syntactic or semantic rules—these rules can combine in subtle ways, just like words in human languages, to layer on new levels of ambiguity and imprecision. Study the way these rules interact, and you'll just instinctively write better code.

Posted by Kevin Carlson at 02:40 PM  Permalink




 
INFO-LINK