Commenting Style Preference

This is a discussion on Commenting Style Preference within the C++ Programming forums, part of the General Programming Boards category; I comment anything I feel I may forget in the future. When I was first getting expoed to C#, I ...

  1. #16
    C(++)(#)
    Join Date
    Jul 2004
    Posts
    309
    I comment anything I feel I may forget in the future. When I was first getting expoed to C#, I commented just about everyother line, unless the line was self-explainatory. In c++ I comment things that need to be commented. When putting in new variable to help get something to work, I often don't name it very well the first time (ok ok I use single letter vars -_-), so I comment them on what they are supposed to do. Commenting everyline, I feel, should only be done in the very very beginning of learning a language.
    To code is divine

  2. #17
    Toaster Zach L.'s Avatar
    Join Date
    Aug 2001
    Posts
    2,686
    In c++ I comment things that need to be commented.
    <southern drawl>Nice...</southern drawl>
    The word rap as it applies to music is the result of a peculiar phonological rule which has stripped the word of its initial voiceless velar stop.

Page 2 of 2 FirstFirst 12
Popular pages Recent additions subscribe to a feed

Similar Threads

  1. WM_CAPTION causing CreateWindowEx() to fail.
    By Necrofear in forum Windows Programming
    Replies: 8
    Last Post: 04-06-2007, 09:23 AM
  2. Button handler
    By Nephiroth in forum Windows Programming
    Replies: 8
    Last Post: 03-12-2006, 06:23 AM
  3. Which style of if loops is most common?
    By dwks in forum A Brief History of Cprogramming.com
    Replies: 38
    Last Post: 08-25-2005, 04:18 PM
  4. WS_EX_COMPOSITED style (double buffering) problems
    By JasonD in forum Windows Programming
    Replies: 2
    Last Post: 10-12-2004, 12:21 PM
  5. Tab Controls - API
    By -KEN- in forum Windows Programming
    Replies: 7
    Last Post: 06-02-2002, 10:44 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21