charlesshoults
12-30-2008, 07:07 PM
I'm working on a website, the code for which is starting to get a little out of hand. Commonly, when I start typing a few words, or even something as simple as variable.dataProvider, I have to pause and let the computer catch up. I know it's not the computer (Core 2 Duo @ 2.4GHz with 4GB of ram), but is something specifically with the code. I've recently started trying to split off sections of code into separate classes, trying to reduce the lines of code, now at 2979.
Question. Instead of setting visibility of components, the page makes heavy use of states and transitions. I currently have 29 states and 185 transitions. I realize that's a lot and probably isn't real clean either. Does anyone know and be able to show me what syntax you would use if you were to move the transitions to a class outside the main project? (Hopefully all of the transitions in one file)
Question. Instead of setting visibility of components, the page makes heavy use of states and transitions. I currently have 29 states and 185 transitions. I realize that's a lot and probably isn't real clean either. Does anyone know and be able to show me what syntax you would use if you were to move the transitions to a class outside the main project? (Hopefully all of the transitions in one file)