Thread: //comments...

  1. #16
    Registered User
    Join Date
    Aug 2001
    Posts
    106
    I just change my comments to jibberish, add goto's every few lines and occssionally throw in recursive loops that count to the line number they're called from...
    Potentially, I have too much spare time.

  2. #17
    Just one more wrong move. -KEN-'s Avatar
    Join Date
    Aug 2001
    Posts
    3,227
    I never figured out that comments are actually helpful...I used to think they were just a waste of time...now I wish I hadn't. dmanit! my code for half my stuff makes NO SENSE. I have no clue what half of it does.

  3. #18
    Mayor of Awesometown Govtcheez's Avatar
    Join Date
    Aug 2001
    Location
    MI
    Posts
    8,823
    Yeah, and just think what it'd be like for someone else to go through it...

    Seriously, since most of my coding is done in a business environment, it's not really considered great practice to put personal notes in the comments...

  4. #19
    the hat of redundancy hat nvoigt's Avatar
    Join Date
    Aug 2001
    Location
    Hannover, Germany
    Posts
    3,130
    Exactly. Business environment makes you comment your files
    thouroughly, but very technical and neutral. Almost sterile.
    But it helps a lot !
    hth
    -nv

    She was so Blonde, she spent 20 minutes looking at the orange juice can because it said "Concentrate."

    When in doubt, read the FAQ.
    Then ask a smart question.

  5. #20
    Registered User
    Join Date
    Aug 2001
    Posts
    106
    Ya, there's only two of us programmers here, but we try to maintain revision histories for all common utility files, so we can remember which one of us changed something last. We also put in alot of comments for future understanding.

  6. #21
    Ecologist
    Join Date
    Aug 2001
    Location
    Utah.
    Posts
    1,291
    Originally posted by Govtcheez
    If anyone else is going to read my code, I delete all the comments and change every variable to 1 or 2 letters, depending on how many there are.
    Ack! I hate one-letter variables! I can't stand
    them... And what's worse, I hate the excuse people
    use to justify them. "It saves time." Oh come on!


    int t;

    int time;

    Difference < .5 seconds

    Nobody's time is that valuable.
    Staying away from General.

  7. #22
    .
    Join Date
    Aug 2001
    Posts
    598
    I realy don't care about how the code is commited or not commited. All I care about is how well it is formated. Since horbily fomated code is hard to read.

    I rerly commit my code, and the commites are usely consit of

    // this does not work
    or
    // this should use something else that does not work
    To Err Is To Be Human. To Game Is Divine!"

  8. #23
    Linguistic Engineer... doubleanti's Avatar
    Join Date
    Aug 2001
    Location
    CA
    Posts
    2,459
    write a program called : auto_obfuscate... v -5.87...
    hasafraggin shizigishin oppashigger...

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Language or Algorithms?
    By Sayeh in forum A Brief History of Cprogramming.com
    Replies: 43
    Last Post: 01-14-2002, 01:38 PM