View Single Post
Old 04-02-2009, 09:39 PM   #1 (permalink)
Village Idiot
Wizard
Top Contributor 
 
Village Idiot's Avatar
 
Join Date: Sep 2007
Posts: 1,299
Thanks: 17
Village Idiot is on a distinguished road
Default I love maintaining legacy code (priceless snippet of ASP code)

At work we have a terrible (massive) ASP CMS we have to manage. No documentation, near no comments and code straight out of basic tutorials. I came though the following piece of code in it (follow bTemplateUpdate).
Code:
    Dim bTemplateUpdate

    If sNewTemplate <> "" Then
        bTemplateUpdate = True
    End If
    If oReq.Form("oldTemplate") <> sNewTemplate Then
        bTemplateUpdate = True
    End if
    bTemplateUpdate = True

    If bTemplateUpdate And (sNewTemplate<>"") Then
   (big process)
   end if
__________________

Village Idiot is offline  
Reply With Quote