Monster function



  • I just started working on some bugs inside a true monster: 700 lines, no subroutines, variables appropriately named data01, data02... about 15 or so keywords. (It was written by a student, but it is used fairly often). I have been able to look at and understand only a small fraction of it, but near the end I found this:

    for xx=0, n-1 do begin
      if n ge xx+1 then begin
      ; about 70 lines- The last 30 only needed to be executed once
      endif
    endfor

     


Log in to reply
 

Looks like your connection to What the Daily WTF? was lost, please wait while we try to reconnect.