• Visitors can check out the Forum FAQ by clicking this link. You have to register before you can post: click the REGISTER link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. View our Forum Privacy Policy.
  • Want to receive the latest contracting news and advice straight to your inbox? Sign up to the ContractorUK newsletter here. Every sign up will also be entered into a draw to WIN £100 Amazon vouchers!

code comments

Collapse
X
  •  
  • Filter
  • Time
  • Show
Clear All
new posts

    #51
    Originally posted by DimPrawn View Post
    Question.

    Do you write comprehensive code comments, thus making the job much longer (kerrching) but making it much easier for someone else to pickup the code and replace you, or write cryptic comment free code that is quick to write (no contract renewal) but no bugger can pick it up (and get called back in on a new contract)?
    I write comprehensive code comments that add value, thus making the job slightly longer (kerc) but making it much easier for someone else to pickup the code and replace me, while I get on with something more lucrative and interesting.
    Down with racism. Long live miscegenation!

    Comment


      #52
      Originally posted by Mich the Tester View Post
      The last thing testers need is bug-free software.
      That's why you love programmers so much, and sabotage the good ones!
      Down with racism. Long live miscegenation!

      Comment


        #53
        Originally posted by NotAllThere View Post
        I write comprehensive code comments that add value, thus making the job slightly longer (kerc) but making it much easier for someone else to pickup the code and replace me, while I get on with something more lucrative and interesting.
        like posting on CUK?
        And what exactly is wrong with an "ad hominem" argument? Dodgy Agent, 16-5-2014

        Comment


          #54
          Originally posted by NotAllThere View Post
          That's why you love programmers so much, and sabotage the good ones!
          We're all interdependent. You make the bugs, I find them. If you don't make bugs, I expose the crap programmers and make your life easier. We all get rich. BOOMED!
          And what exactly is wrong with an "ad hominem" argument? Dodgy Agent, 16-5-2014

          Comment


            #55
            At a previous client a spend three days investigating why one of their services had stopped working. I tracked it down to an SQL call embedded in the following try/catch code:

            Code:
            try{
                    ...lots of real code here
            }catch(Exception e){
                    // ignore, probably nothing
            }
            That comment certainly helped me

            Comment


              #56
              Originally posted by Ruprect View Post
              If you're writing a class that long you need to be shot.
              Assembler isn't object orientated... no such thing as a class

              Comment


                #57
                Originally posted by NickFitz View Post
                Assembler isn't object orientated... no such thing as a class
                so many deaths that could have been prevented
                Coffee's for closers

                Comment


                  #58
                  Originally posted by BrilloPad View Post
                  Anyone read showstopper by steve cutler?

                  I thought the arguments they had over code commentating were interesting.

                  Essentially no-one commented their code except Steve Cutler. Their argument being comments get out of date. He updated his comments as he went along.....


                  Dave Cutler.

                  Show Stopper!: The Breakneck Race to Create Windows NT and the Next Generation at Microsoft

                  I am told that he was, ahem, difficult to work with.
                  Behold the warranty -- the bold print giveth and the fine print taketh away.

                  Comment


                    #59
                    Originally posted by FSM with Cheddar View Post
                    Someone I know cut and paste some code from the internet (including comments) and put it in production code. The comments were in Spanish, but he thought he better leave them in.

                    During testing it was found that the code didn't work. After putting the Spanish comments through google translator it came out as "This code is an example, and I can't get it to work, not sure why"
                    Post of the month!
                    Behold the warranty -- the bold print giveth and the fine print taketh away.

                    Comment


                      #60
                      Originally posted by Sysman View Post
                      Post of the month!
                      Thanks
                      Originally posted by cailin maith
                      Hang on - there is actually a place called Cheddar??

                      Comment

                      Working...
                      X