On Nov 22, 2011, at 12:59 PM, Richard wrote:
Whereas the
following is helpful:
*dst++ = *src++; // Copy a word of src to dst while incrementing both
srsly? This is such a common C idiom, that I'd think anyone who feels
this needs a comment shouldn't be using the language.
The point is that code I write often gets read by people who *don't* know C/C++ that
well, but still feel the need to point out that it's "mysterious" in design
reviews. Yes, that happens. Yes, we all have dumb customers/students sometimes. I
prefer to forestall the idiotic review notes instead, because it's bad for business
when I want to strangle customers. :-)
I should also point out that it's a common C/C++ idiom for people who didn't grow
up in a world where everything is a library. One might argue that people who don't
know C/C++ well enough to understand the order of operations should probably learn a bit
more before passing comment on someone else's work, but that's not the world we
live in.
- Dave