When I look at AlphaSports, and (in some cases) many of the comments on the forum; I see many, many small scripts and functions. I have not yet been able to 'formulate' a mindset as to the point of writing a small script for an event as opposed to 'running' a small script/function for that event.
Since the value of either side is still questionable (to me); I have no aversion to either side...
My point in the form of a question:
Other than the ability to call a script or a function from an event; what is the 'gain' over just writing the script as part of the event? Especially if there is little or no chance that the particular function/script will be used in more than one place???? Example..... calling a sub-menu or a form from a button on a menu. If that menu is the only place that the 'calling' will occur, why clutter up the code section with a script/function?
Now if you have a particular 'handling/processing' of data or forms that re-occurs several times and from several different locations - OK use a function or a script, cuz that way you only write it once...
I can see some similarity between Cobol 'performs' and functions or calling scripts and it might be a little less 'cluttered' in a long script to call a function but what else is gained????
Don't need a long dissertation, just a few short comments will do.
thanx in advance for any time spent to clear 'the mud'
D
Since the value of either side is still questionable (to me); I have no aversion to either side...
My point in the form of a question:
Other than the ability to call a script or a function from an event; what is the 'gain' over just writing the script as part of the event? Especially if there is little or no chance that the particular function/script will be used in more than one place???? Example..... calling a sub-menu or a form from a button on a menu. If that menu is the only place that the 'calling' will occur, why clutter up the code section with a script/function?
Now if you have a particular 'handling/processing' of data or forms that re-occurs several times and from several different locations - OK use a function or a script, cuz that way you only write it once...
I can see some similarity between Cobol 'performs' and functions or calling scripts and it might be a little less 'cluttered' in a long script to call a function but what else is gained????
Don't need a long dissertation, just a few short comments will do.
thanx in advance for any time spent to clear 'the mud'
D
Comment