Re: is this badly written code?
Re: is this badly written code?
- Subject: Re: is this badly written code?
- From: "I. Savant" <email@hidden>
- Date: Tue, 15 Apr 2008 11:05:33 -0400
> I'm not going to argue with you because I think you've given some pretty
> good advice here. I'm a fan of white space in my code as well, and though
> there are some stylistic differences between us, I concur with the basic
> concepts you laid out. I just thought a caveat might be in order on #4
> quoted above. And that caveat is simply "don't overdo it".
Agreed, but this is veering rapidly away from Cocoa. :-) The answer
to the OP seems to boil down to this:
* Write your code so it is readable (ie, 'take advantage of
whitespace', and 'nesting is okay in moderation but over-use is a
***** to debug').
* Comment your code but don't explain every line, variable, and
concept (ie, you're not writing a book on programming, you're writing
a program).
I think though, that debates on coding style in general probably
belong on another list. :-)
--
I.S.
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden