Why do people not add comments when coding nowadays?

Page 1 of 3 123 LastLast
Results 1 to 15 of 38
  1. #1
    Account Upgraded | Title Enabled! Gwei is offline
    MemberRank
    Jul 2005 Join Date
    i live in a buLocation
    677Posts

    Why do people not add comments when coding nowadays?

    If you are going to release a work, be it the most simplest npc, to the most complicated xxX stuff, thse comments really helps the second editor, how well the second or third editor can continue editing the code depends on this too. Don't you agreed?

    why won't people add any useful comments anymore, just had a look at all these new random repack/src, they are all codes and letters and numbers, and barely any comment anymore and it seems like the original comments left by odinms is getting more and more lesser..
    even if there are comments, theres no meaning in it, and the comments goes like //fuck this line or //water of life? or //lol i like long names

    that doesn't help editors at all..
    or i guess they were not told the real uses of comments =|

    does any of you agree? or people are really that selfish cause they want to be the one editing all the time and gets all the credit and thank D:


  2. #2
    Account Upgraded | Title Enabled! Generic230 is offline
    MemberRank
    Jul 2009 Join Date
    506Posts

    Re: Why do people not add comments when coding nowadays?

    Good code for the most part won't need comments if it's something small

  3. #3
    Account Upgraded | Title Enabled! Gwei is offline
    MemberRank
    Jul 2005 Join Date
    i live in a buLocation
    677Posts

    Re: Why do people not add comments when coding nowadays?

    Quote Originally Posted by Generic230 View Post
    Good code for the most part won't need comments if it's something small
    You know in my school, when we submit our programs for our lecturers to mark, 1/3 of the programs must consist of comments, else its immediate failure and at every close '}' there must be a comment citing the examiner what the } is closing. failing to cite a comment behind the '}' minus 5 marks out of 100 for every practices(problem solving) and test.
    like
    }//end main
    }//end function z
    }//end if

    So you kinda gets 0 if your program happens to have over 50 } and you dont cite a comment at the end of each }.

    I believe the comment thingy is not related to skill/coding quality at all, its there to allow users including authors to understand and go through back big past works faster. I'm sure an experienced/pro programmer(not 1 that just noe about programming from maple) but one who really learned programming from the basics will agrees with me the usefulness of comments..
    Last edited by Gwei; 16-09-10 at 02:50 AM.

  4. #4
    Ooo, shiny! FateJiki is offline
    MemberRank
    Feb 2008 Join Date
    1,057Posts

    Re: Why do people not add comments when coding nowadays?

    Quote Originally Posted by NoobsNoobs View Post
    You know in my school, when we submit our programs for our lecturers to mark, 1/3 of the programs must consist of comments, else its immediate failure and at every close '}' there must be a comment citing the examiner what the } is closing. failing to cite a comment behind the '}' minus 5 marks out of 100 for every practices(problem solving) and test.
    like
    }//end main
    }//end function z
    }//end if

    So you kinda gets 0 if your program happens to have over 50 } and you dont cite a comment at the end of each }.

    I believe the comment thingy is not related to skill/coding quality at all, its there to allow users including authors to understand and go through back big past works faster. I'm sure an experienced/pro programmer(not 1 that just noe about programming from maple) but one who really learned programming from the basics will agrees with me the usefulness of comments..
    I agree that it can be useful. However, I don't see why we should put a comment after every bracket.


    Ex. :
    PHP Code:
                    } else if (selection == 1) {
                        
    cm.warp(100000200);
                        
    cm.dispose();
                    } 
    I don't think you need comments to figure this out.


    But nevertheless, I like the idea, and why not put comments where needed.(If it gets complicated , why not?)

  5. #5
    Account Upgraded | Title Enabled! Generic230 is offline
    MemberRank
    Jul 2009 Join Date
    506Posts

    Re: Why do people not add comments when coding nowadays?

    Quote Originally Posted by NoobsNoobs View Post
    You know in my school, when we submit our programs for our lecturers to mark, 1/3 of the programs must consist of comments, else its immediate failure and at every close '}' there must be a comment citing the examiner what the } is closing. failing to cite a comment behind the '}' minus 5 marks out of 100 for every practices(problem solving) and test.
    like
    }//end main
    }//end function z
    }//end if

    So you kinda gets 0 if your program happens to have over 50 } and you dont cite a comment at the end of each }.

    I believe the comment thingy is not related to skill/coding quality at all, its there to allow users including authors to understand and go through back big past works faster. I'm sure an experienced/pro programmer(not 1 that just noe about programming from maple) but one who really learned programming from the basics will agrees with me the usefulness of comments..
    I've read a bunch of articles about commenting, a bunch saying its useless if your code is good, a bunch saying to comment everything, then ones saying how people over-comment just like commenting a closing bracket, you obviously just aren't able to space.

  6. #6
    Alpha Member josho192837 is offline
    MemberRank
    Apr 2008 Join Date
    PennsylvaniaLocation
    1,950Posts

    Re: Why do people not add comments when coding nowadays?

    Takes too much time. Read over the code a couple times and if you're able to edit it, I think you'll be able to understand it.

  7. #7
    Gamma Xerixe is offline
    MemberRank
    Apr 2008 Join Date
    MalaysiaLocation
    3,605Posts

    Re: Why do people not add comments when coding nowadays?

    Yea, lets comment stuff like
    Code:
    if (splitted[0].equals("@gofm")) {
         c.getPlayer().changeMap(910000000);
    }
    Because people so can't understand that right?

    So you kinda gets 0 if your program happens to have over 50 } and you dont cite a comment at the end of each }.
    Orly now? So even if its the final exam, if you dont put } //end
    You'll get 0 and fail and you would need to retake the test for not adding comments?


    , 1/3 of the programs must consist of comments,
    Wow, shit, since most sources has like 2mb in size,
    you're gonna write 600++ kb worth of text? :O

  8. #8
    Mother effin' clouds SaintsIan is offline
    MemberRank
    Apr 2008 Join Date
    fyrechat.netLocation
    2,809Posts

    Re: Why do people not add comments when coding nowadays?

    Because if you have named your classes, functions, interfaces, methods, and all those stuff well... they are comments in itself.

  9. #9
    Gamma Sparrow is offline
    MemberRank
    Mar 2009 Join Date
    SydneyLocation
    2,960Posts

    Re: Why do people not add comments when coding nowadays?

    Why would I write a message to myself?

  10. #10
    Account Upgraded | Title Enabled! xJvlaplex is offline
    MemberRank
    Mar 2009 Join Date
    478Posts

    Re: Why do people not add comments when coding nowadays?

    Quote Originally Posted by NoobsNoobs View Post
    You know in my school, when we submit our programs for our lecturers to mark, 1/3 of the programs must consist of comments, else its immediate failure and at every close '}' there must be a comment citing the examiner what the } is closing. failing to cite a comment behind the '}' minus 5 marks out of 100 for every practices(problem solving) and test.
    like
    }//end main
    }//end function z
    }//end if

    So you kinda gets 0 if your program happens to have over 50 } and you dont cite a comment at the end of each }.

    I believe the comment thingy is not related to skill/coding quality at all, its there to allow users including authors to understand and go through back big past works faster. I'm sure an experienced/pro programmer(not 1 that just noe about programming from maple) but one who really learned programming from the basics will agrees with me the usefulness of comments..
    this is very bad programming practice, just imagine a project like ReactOS decorated with comments like that - it will probably be up to 1.5GB compressed instead of 500MB! moreover, it may help people who don't know shit about the language to "understand" it, but programmers should understand the code anyway, with tools these days like Notepad++, it's easy to match the bracket pairs.

  11. #11
    Account Upgraded | Title Enabled! flav is offline
    MemberRank
    Jul 2008 Join Date
    655Posts

    Re: Why do people not add comments when coding nowadays?

    I agree with David and Ian, if you have a good programming style you don't need a comment for every 2 lines.

    Quote Originally Posted by -Daniel- View Post
    Why would I write a message to myself?
    Don't make yourself look stupid, it's obvious that he's talking about releaes.

  12. #12
    Account Upgraded | Title Enabled! Kaynu is offline
    MemberRank
    Mar 2010 Join Date
    388Posts

    Re: Why do people not add comments when coding nowadays?

    You only comment to help a programmer understand the code, not the language.

  13. #13
    Account Upgraded | Title Enabled! xJvlaplex is offline
    MemberRank
    Mar 2009 Join Date
    478Posts

    Re: Why do people not add comments when coding nowadays?

    moreover, if you're going to add a End If comment on the end of each brace, you may as well use Visual Basic, seems like C/C++ is too complicated for you,

  14. #14
    Account Upgraded | Title Enabled! Carrino is offline
    MemberRank
    Mar 2010 Join Date
    1,114Posts

    Re: Why do people not add comments when coding nowadays?

    We've done our job by releasing it and now, are you asking us to waste our time to add comments?

  15. #15
    Account Upgraded | Title Enabled! Generic230 is offline
    MemberRank
    Jul 2009 Join Date
    506Posts

    Re: Why do people not add comments when coding nowadays?

    Quote Originally Posted by Carrino View Post
    We've done our job by releasing it and now, are you asking us to waste our time to add comments?
    Implying you ever release something half-decent.



Page 1 of 3 123 LastLast

Advertisement