On Tue, 2005-10-18 at 12:06 -0700, Wes Hardaker wrote:
> I think the implementation is possibly confusing to C-newbies, because
> of the j=0 at the end of the initialization of the first loop and it
> took me a few seconds to figure out why you did it that way.

I think the implementation is possibly confusing to experienced C
coders in a hurry.  If there's a good reason for initialising 'j'
at the end of the outer loop rather than in the inner loop (as
seems more natural), then *document* the bloody thing!
   Explain *why* you're being apparently perverse - don't just
leave it as a trap for someone to "fix" in two or three years time.

There's a reason why we drum the importance of comments into our
students for three years.  It's a crying shame that neither they
nor anybody else seem to take the blindest bit of notice :-(


Dave


-------------------------------------------------------
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to