Dealing with options in a program along all the script
How do professional programmers deal with preferences for their application?
when there are options to be chosen in an application, does the program is full of "if" to detect what option has been chosen?
Let's say that there is a call to 30 functions in the program.
But the user has got to choose between an option A or B that would modify the way those 30 functions work.
Would you have to write 60 functions and then place an "if" condition each time to go to the needed one...
Or would it be possible to write at run time (after the program has read the preferences) the corresponding functions? So that it wouldn't be necessary to check conditions each time?
The goal being to gain total speed in critical functions preventing their run to be slowed down by condition requests.
I'm not sure that all this will be very clear to you, I had difficulties to explain it myself...so please be indulgent;-)
|Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)|
|Thread||Thread Starter||Forum||Replies||Last Post|
|NEED HELP - Action Script 2.0 and CS3 timeline questions||snake_eyes_wolf||Newbies||5||12-17-2007 09:42 PM|
|Video Player - XML Driven Dynamic Script Text Box||paswicka||Actionscript 2.0||1||06-28-2007 02:34 PM|
|Scanning a .fla file for Action Script ?||Ultra||Flash 8||1||06-23-2007 02:05 PM|
|PHP e-shop script.||Rubix||XML & Sockets||0||10-15-2006 11:47 PM|
|Running a PHP Script in the Background||shaggy_LFC||Flash MX ActionScript||2||06-09-2004 08:19 AM|