| |||
| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] |
Okay, I'm open to hearing the various interpretations of what "windowWidth"
could mean, and frankly, I whipped this out in a rush. If I were actually
doing this in code I'd probably use portWidth or portRectWidth instead of
windowWidth.
In theory comments are great. In practice they can vary widely from useless
restatements of an API name and long rambling dissertations which clarify
little or nothing to genuinely useful comments. So the first challenge is
learning how to write *good* comments. (lots of good and true stuff snipped)
I think you can write self-documenting coding for just about anything if you
are skilled enough at it. And make no mistake, it takes a skill you have to
learn.
> MyFile.comments would be useless.
To you, maybe. To me, definitely. To someone else? Who's to say?
Either write *real* separate
(programmer) documentation (which we all *should* be doing, but few
of us really do these days),
Because we're all lazy bums like you said!!! LOL
I *never* made some of the mistakes I saw in the code I described. ;-) And
the worst part was that this code was written by my boss, who had his Ph.D.
in AI. How do you tell your boss his code sucks? LOL Actually, there *is* a
way: You turn in your resignation and tell him you'd rather be unemployed
than have to work with that code again.
> Well, the OP *did* say most of these comments were done for thatexact purpose. If I understood correctly, this is his first Mac app.
Right, but my comment was intended to be more general than that.
| References: | |
| >Re: [OT] Commenting source code (was Re: Problems with Controls Manager) (From: Laurence Harris <email@hidden>) |
| Home | Archives | FAQ | Terms/Conditions | Contact | RSS | Lists | About |
Visit the Apple Store online or at retail locations.
1-800-MY-APPLE
Contact Apple | Terms of Use | Privacy Policy
Copyright © 2007 Apple Inc. All rights reserved.