08-10-2005 01:04 PM
08-10-2005 01:22 PM - edited 08-10-2005 01:22 PM
Message Edited by Joe Gerhardstein on 08-10-2005 01:23 PM
08-10-2005 01:25 PM
08-10-2005 01:39 PM
08-10-2005 01:41 PM
08-10-2005 01:46 PM
08-10-2005 02:13 PM
08-10-2005 02:35 PM
08-10-2005 02:58 PM
08-10-2005 09:54 PM
As always tbob gave an excellent discussion of the very bad effects of sequence structures...
But what with it being late and my not being able to get to sleep, I took his good example and played with it a bit to show something else that might be of value to you. A common way of building a large string is to use a concatenator to paste everything together. However, this can cause readability problems if you have a large number of items because often you will endup essentially having two terminals for each item you want to add to the string (one for the item and one for the delimiter separating it from the next item).
Something I have found that aided readability in these situations is to us a string formatter as shown in my (further) modified version. There are far fewer wires cluttering the diagram and looking at the formatting string makes the basic structure of the output immediately apparent. This becomes even more valuable in situations where the various items have labels associated with them. For example, with a format string like:
Operator: %s
Test Number: %d
Time/Date: %s %s
Results:
%s