3050 lines and counting

So far my reporting page logic is ~3050 lines of code and growing (this will be the largest single page I have ever made). I need to figure out how to do folding with vim. It really isn’t that bad - a bunch of variables is the main reason for it. I finally decided on doing the cartisan product of them in the logic code - instead of being a waste of time and resources like I originally thought - it just means alot of coding for me. Reasons for cartisan product:

  1. make sure my logic can handle any combination of the variables
  2. since it is a bunch of switches and if statements - logically it should run quickly.
  3. to minimize/optimize my data retreival from the Database (could have pulled all the data then removed the records that do not meet the criteria - but what about later when the database has 50,000 records)

I think I’m doing the right thing but if anyone knows of a better way to do it- I am all ears.

Man my fingers hurt - :)

del.icio.us:3050 lines and counting  digg:3050 lines and counting  furl:3050 lines and counting  reddit:3050 lines and counting

Leave a Reply