View Single Post
Old 06-18-2012, 09:50 PM   #1933
cdcox cdcox is offline
www.nfl-forecast.com
 
cdcox's Avatar
 

Join Date: Sep 2000
Casino cash: $2111769
Quote:
Originally Posted by AustinChief View Post
Yikes..

If it were me, I'd bite the bullet and move everything to php 5.4 and CI 2.1.1 .. since you will have to do so at some point anyway... BUT if you want to wait on that nightmare.. then getting rid of GOTO is a good idea anyway.

Can't you just make classes/functions that can be called instead?

Again, if you need a hand on anything I can whip through php/CI code pretty quickly and debug. I have also installed PHP 5.3+ and CI 2+ about a dozen times this year so feel free to ask me there as well.

Your production server an Amazon instance? or something similar?
Building the initial code it was easiest for me to conceptualize the game simulation, coaching decisions and mechanics of keeping track of the game situation by writing 600 lines of stove pipe code. That 600 lines calls 3400 lines of functions. I haven't done any object oriented with this project, although my playoff simulator is all object oriented.

Now that I have the basic logic down in that 600 lines of code, I think I can reorganize it slightly using if statements with a reasonable level of nesting to get rid of the goto statements.

Our production server is a 1&1 shared host, but we will probably move to a managed cloud server or something within the next couple months.
Posts: 45,544
cdcox is obviously part of the inner Circle.cdcox is obviously part of the inner Circle.cdcox is obviously part of the inner Circle.cdcox is obviously part of the inner Circle.cdcox is obviously part of the inner Circle.cdcox is obviously part of the inner Circle.cdcox is obviously part of the inner Circle.cdcox is obviously part of the inner Circle.cdcox is obviously part of the inner Circle.cdcox is obviously part of the inner Circle.cdcox is obviously part of the inner Circle.
    Reply With Quote