Ye' old general discussion board. Basically, for everything that isn't covered elsewhere. Come here to shoot the breeze, shoot your mouth off, or whatever suits your fancy. This forum is not for asking programming related questions.
// the paticularly long while statement dynamically generates the navigation menu
// since theoretically we don't know how many carts there are in the system
// we need some way to handle it dynamically. it loops the different gk types
// and then matches this information to the gk type in the actual
// kart table. this is a n-n relationship;)
// either way we also have the addition that if no kart is listed
// under a certian type then it doesn't display their name as a header
// because if it has no go-karts then what is the point.
// we may even later add a clause so that it ensures the gk has parts
// listed before it does anything.
// the next thing noteworthy is the expand variable. if expand is not set
// for the paticular group (Which is also dynamically named)
// then we don't show the actual go karts.
// rather we wait for the user to select which one he wants to look at
// before we display anything.
// the below code might be slightly complex but just remember it's trying to handle
// all the navigation without actually knowing anything.
// pretty nifty if i say so myself.
// for future reference always start at counting at 0, stupid math has
// peolpe starting at 1...
anyone got anything longer than thaT? I wrote my life story...LOL...sorry.was just browsing over it and started laughing at myself.
onion,who ya talking too?me or Roja?
Roja, awsome comment. that's probably what I should have done. that loop went like...erm..5 levels deep or somethign like that...let's loop through the loop which loops through the array which has been passed by reference from a class on page 2 of 75....hehe..not quite but you get the idea:-D
The really cool thing is that I actually had a developer send me an email...
"So I finally have a reason to ask. Just how large a demon can you conjure?"
Which was *exactly* the intent. I don't mind if it changes, I just want considerable thought to go into it.
As it turned out, my ever-so-magical code was reduced to a smoking pile of embers by his much more powerful Demon of Optimization +7. ~70 lines became *20*. Harsh. But thats what happens when Demons battle over code.
damn! owned!!!! sorry..heh...I've had it happen to me too..I got a snippet of code floating out there I'm certian I could cut in half..I just don't feel like it:-D
Charles256 wrote: that loop went like...erm..5 levels deep or somethign like that...let's loop through the loop which loops through the array which has been passed by reference from a class on page 2 of 75....hehe..not quite but you get the idea:-D