Create Journals
Update Journals

Journals
Find Users
Random

Read
Search
Create New

Communities
Latest News
How to Use

Support
Privacy
T.O.S.

Legal
Username:
Password:

D. Glenn Arthur Jr. (dglenn) wrote,
@ 2009-10-31 12:40:00
Previous Entry  Add to memories!  Add to Topic Directory  Tell a Friend!  Next Entry

    I may be overcommenting

    Is this over-commenting / a sign that I didn't sleep well enough last night? I just wrote, in a C program:

        int     i;                     /* Ye olde generick loope counter (you  */
                                       /* do know that the 'Y' in "ye olde" is */  
                                       /* really supposed to be a _thorn_, so  */
                                       /* it's still pronounced "the old" not  */
                                       /* "yee old" right?  Well you do now.   */
                                       /* Not sure what most C compilers would */
                                       /* do with a non-ASCII character in a   */
                                       /* comment though.  But I digress ...)  */
    

    I do seem to comment more extensively after trying to read almost anybody else's code, where I'm lucky to find comments describing a function's purpose, much less any explanation of its arguments or useful clues as to where I need to poke at it to add a feature. And I've been reading other people's code lately.

    Obviously, this is code I'm planning to send to a bunch of other people ... (But while I'm posting -- do other compilers supply the __FILE__ and __DATE__ pre-defined macros, or is that just a gcc thing? I don't know what Windows users will compile this with.)



(Read comments)

Post a comment in response:

From:
 
Username:  Password: 
Subject:
No HTML allowed in subject
 

No Image
 

 Don't auto-format:
Message:
Enter the security code below.


Notice! This user has turned on the option that logs IP addresses of anonymous posters.

Allowed HTML: <a> <abbr> <acronym> <address> <area> <b> <bdo> <big> <blockquote> <br> <caption> <center> <cite> <code> <col> <colgroup> <dd> <dd> <del> <dfn> <div> <dl> <dt> <dt> <em> <font> <h1> <h2> <h3> <h4> <h5> <h6> <hr> <i> <img> <ins> <kbd> <li> <li> <map> <marquee> <ol> <p> <pre> <q> <s> <samp> <small> <span> <strike> <strong> <sub> <sup> <table> <tbody> <td> <tfoot> <th> <thead> <tr> <tt> <u> <ul> <var> <xmp>
© 2002-2008. Blurty Journal. All rights reserved.