• 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

thunderlizard

Prehistoric
Thanks received
7
...contained the following method, before I deleted it:

Code:
bool DoesFutureExist()

I wish legacy code contained philosophical quandaries more often.
 
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? :D
 
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 :tongue
 
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.
 
I left a legacy of rude words in my client's code. For some reason code always worked after you rudified it.
 

Advertisers

Back
Top