Complete.Org: Mailing Lists: Archives: freeciv-dev: November 2001:
[Freeciv-Dev] Re: Coding Guideline Updated RFC
Home

[Freeciv-Dev] Re: Coding Guideline Updated RFC

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: freeciv development list <freeciv-dev@xxxxxxxxxxx>
Subject: [Freeciv-Dev] Re: Coding Guideline Updated RFC
From: Andrew Sutton <ansutton@xxxxxxx>
Date: Mon, 26 Nov 2001 13:30:44 -0500

> As I said you are alone here.

ahhh... the influence of corporate coding standards ;). it really does make 
code easier to read if you have to an actual code review (at least in my 
company). they tend to place really high value on strictly formatted and well 
documented code. not properly formatted and documented == rewrite and 
document. i know its a hassle and i don't like doing it either, but if 
somebody else has to maintain my code, i might as well give them the benefit 
of understanding it... of course you have to throw in an undocumented case of 
the comma operator for good measure :)

        int ret = some_ptr && ( (void)some_ptr->foo(), 0) )

i realize that most developers don't think too highly of doing that stuff, 
but still... it would be nice to go thru an open source program and not have 
to think too hard about what everything does. i guess i'm in a minority here 
too :(

andy


[Prev in Thread] Current Thread [Next in Thread]