(no subject)
actual comment i have just put into my actual code
'******************************** begin bizarre tangle of ifs DO NOT MESS WITH THE TABS OR I WILL HUNT YOU DOWN WITH SCORPIONSI'm working with decade-old code, trying to figure out how it does what it does so I can rewrite it for my new site and AAAAUUUGGHHH the mess of if statements here.
no subject
Since then I've realized you can do any control structure with IFs and GOTOs, but you don't want to.
no subject
There is actually a comment in the code dated April 2004 that explains that more fields were added to the database to take care of certain conditions, mostly dealing with different types of files that could be uploaded into electronic course reserves, and that the code here was kludged together. It hadn't been touched since. The last time I did the website I just ported it over without changing the way these pages were displayed. I'm changing them to be more user-friendly now, so I *have* to rewrite this code...although part of that depends on a question I have to my boss about various types of file formats that faculty may or may not be putting into course reserves any longer. I may be able to rip out giant swathes of code, since I think profs are moving to eCollege more and more for hosting files for their students to look at, so if I don't have to support it, I don't want to support it.
no subject
I'm now visualizing blocks of code with the comments "Delete when Prof. X retires/dies," "Delete when Prof. Y retires/dies," etc.
no subject
no subject