The way I use “programmatically” and sometimes “continue” is best described using the following code:
int[] arr = new int[] { 1, 2, 3, 4, 5 };
do the same programmatically:
int[] arr = new int[5]; for (int i = 1; i < 6; i++) arr[i] = i + 1;
Now, while a very limited example, what would you choose if the array was hundreds or thousands of elements. In real situations, there are usually pros and cons that are best used simultaneously, but for complex operations, as a rule, it is more and more effective if they are performed "programmatically".
Perhaps the best example of this is the meaning
. You can simply enter the number 3.141592653589793238, but it would be very difficult to enter it if you needed
accurate to 100 decimal places. Instead, you would use a function, perhaps something like
.
** Wikipedia link http://en.wikipedia.org/wiki/Pi *
Ash Feb 11 '09 at 8:15 2009-02-11 08:15
source share