• 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!

Client's legacy code

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

    Client's legacy code

    ...contained the following method, before I deleted it:

    Code:
    bool DoesFutureExist()
    I wish legacy code contained philosophical quandaries more often.

    #2
    Originally posted by thunderlizard View Post
    ...contained the following method, before I deleted it:

    Code:
    bool DoesFutureExist()
    I wish legacy code contained philosophical quandaries more often.
    What was in the method?

    Comment


      #3
      Disappointingly, it was "future" in the financial sense (so should technically have been "futures") and just did a database lookup.

      Comment


        #4
        Originally posted by thunderlizard View Post
        Disappointingly, it was "future" in the financial sense (so should technically have been "futures") and just did a database lookup.
        Oh, okay, but now that you've deleted the method to ascertain the existence of the future, is the default for it to exist or not exist? Or is the question without meaning now?

        Comment


          #5
          Some of the error conditions in my early code ~20years ago had something like...

          ; Houston, we have a problem.

          or if it was particularly complicated...

          ; Here be Dragons...

          Nobody ever complained in the code reviews

          Comment


            #6
            I seen some great stuff in comments over the years - including some spectacularly sweary ones in one product - I also saw a function commented as "sort out stupid American date format" (written by an Aussie)

            The Americans ruined all our fun with their straight-laced puritanism again - remember all those Easter Eggs? Killed by US govt.

            Comment


              #7
              I left a legacy of rude words in my client's code. For some reason code always worked after you rudified it.
              bloggoth

              If everything isn't black and white, I say, 'Why the hell not?'
              John Wayne (My guru, not to be confused with my beloved prophet Jeremy Clarkson)

              Comment


                #8
                I once came across the following comment;

                ' Nobody around here knows what this bit does
                Last edited by Mich the Tester; 25 August 2011, 09:13.
                And what exactly is wrong with an "ad hominem" argument? Dodgy Agent, 16-5-2014

                Comment


                  #9
                  Originally posted by Mich the Tester View Post
                  I once came across the following comment;

                  ' Nobody around here knows that this bit does
                  Written by the highly paid programmer himself?

                  Comment


                    #10
                    Originally posted by TimberWolf View Post
                    Written by the highly paid programmer himself?
                    No, written by some contractor who was called in to repair it.
                    And what exactly is wrong with an "ad hominem" argument? Dodgy Agent, 16-5-2014

                    Comment

                    Working...
                    X