⁂ Have Fun: Foolproof Future-Proofing

"We had a coder for our project named Clyde," Robert B. writes, "who would have been much happier coding in C, but we had good reasons for choosing VB instead. To make up for the ease of coding in VB, Clyde would eschew the simple way of doing things. No calls to well-defined common routines for him; no, he would code deeply inscrutable functions to accomplish even the simplest tasks.

"Eventually, it came time to move the application to a new, web-based platform. We weren't porting the code – after a decade of Rapid Application Development, it was an unholy amalgamation of conflicting 'common' routines and wildly divergent programming styles. But we did have to document the functionality behind the existing system.

"A colleague and I spent half a day trying to figure out this one check:

bSkipYearCheck = False
If Year((CVDate(datYrEnd_Dt) + 1)) - 1 = iYear Then
bSkipYearCheck = True
End If

... wondering why ? --> http://bit.ly/2gP1qG

© 2011 Devis Lucato @itbus.