Create Loosely Coupled, Highly Specialized Procedures
Visual Basic makes creating procedures easy, but this simplicity masks the art and science of building well-crafted procedures. Visual Basic places few rules on procedures—it doesn’t limit the number of statements you can place within a procedure, nor does it limit how many tasks can be performed by a procedure. Although Visual Basic doesn’t enforce such limitations, you should be self-governing in these areas to create better procedures. In the following sections, I’ll describe how to do that.
Make All Procedures Perform Specialized Functions
The first thing to keep in mind is that every procedure should perform a specific function, and it should do so very well. You should avoid creating ...
Get Practical Standards for Microsoft® Visual Basic® .NET, Second Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.