It is also a way of breaking code up into understandable, single purpose blocks of code. This increases the chance someone will fully comprehend it quickly.
Large runs of code, even if they do not have sections that a reused are someone else's nightmare in 5 years time. -----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of George Gallen Sent: Tuesday, 8 February 2011 8:20 AM To: U2 Users List Subject: Re: [U2] Does UV have a "BLOCK" command My main aversion to the subroutine method is that to me, I think of subroutines as code that used in multiple places, if it's only used once, why not put in the main code. Yes, it can be used once....and still be a subroutine... George > -----Original Message----- > From: [email protected] [mailto:u2-users- > [email protected]] On Behalf Of Kate Stanton > Sent: Monday, February 07, 2011 4:17 PM > To: U2 Users List > Subject: Re: [U2] Does UV have a "BLOCK" command > > Why not use a subroutine? You say you don't want to, then describe > just what a subroutine is: a block of code for a specific purpose > (hopefully documented at the top), with RETURN to get out back to the > main code. > > Personally, I like subroutines! > -- > Kate Stanton _______________________________________________ U2-Users mailing list [email protected] http://listserver.u2ug.org/mailman/listinfo/u2-users ______________________________________________________________________ This email has been scanned by the MessageLabs Email Security System. For more information please visit http://www.messagelabs.com/email ______________________________________________________________________ ########################################################################################### The information transmitted in this message and attachments (if any) is intended only for the person or entity to which it is addressed. The message may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. If you received this in error, please contact the sender and delete the material from any computer. The intended recipient of this e-mail may only use, reproduce, disclose or distribute the information contained in this e-mail and any attached files with the permission of IMB. ########################################################################################### _______________________________________________ U2-Users mailing list [email protected] http://listserver.u2ug.org/mailman/listinfo/u2-users
