10-10-2011 01:14 PM - edited 10-10-2011 01:19 PM
@GlenS wrote:
Do you still disagree?
Yes, use subVIs. 'Nuff said. I can tell you that the 5 minutes it takes to create one is greatly preferable to the 5 hours it takes to figure out what the heck you did a year later when you come back to your code. Your brain will handle smaller, more compartmentalized functions much more easily than trying to look at the big picture (which I'm assuming right now is a lot of "spaghetti"). For instance, if someone else opens your code, and you tell them to look for the part where the header is generated by saying "It's in the upper left corner. Scroll up 3 clicks then over 2 clicks. If you don't see it, zoom out and look again." how will they know where that is, or even if they are looking at the right spot? But, if you can say "it's in the generate header case in the case structure, inside the Generate File Header.vi" there will be far less confusion. This is just one example of one benefit. Sorry for the bluntness.