LOADING
Loading
Hi , welcome back.
LogoutLOGOUT
 
  Lost password?  
Hi
 




 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 03-19-2007, 04:02 PM
Jayme65 Jayme65 is offline
Registered User
 
Join Date: May 2006
Posts: 34
Rep Power: 0
Jayme65 is on a distinguished road
Dealing with options in a program along all the script

How do professional programmers deal with preferences for their application?
I explain:
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;-)
Reply With Quote
 


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

Similar Threads
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




All times are GMT. The time now is 06:41 PM.