First Advantage of Procedures

Code such as the code we put in the GetUserName function can be thought of as "generic," meaning that it can be applied to a variety of uses. Once you have a discreet, well defined, generic function such as GetUserName, you can reuse it any time you wish to prompt the user for their name. Once you've written a well-tested procedure, you never have to write that code again. Any time you need it, you just call the procedure. This is knows as Code Reuse.