Thread: Commenting Style Preference

  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.

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, 08: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, 03:18 PM
  4. WS_EX_COMPOSITED style (double buffering) problems
    By JasonD in forum Windows Programming
    Replies: 2
    Last Post: 10-12-2004, 11:21 AM
  5. Tab Controls - API
    By -KEN- in forum Windows Programming
    Replies: 7
    Last Post: 06-02-2002, 09:44 AM