For VB professionals who demand excellence, Visual Basic 6: Error Coding and Layering presents a start-to-finish plan for achieving it. Tyson Gill introduces innovative, fully-integrated technical and management strategies for dramatically improving the results of any VB6 project. Understand the "smart coding triangle" and how to create safe coding frameworks that lead to error-resistant code. Discover new ways to anticipate and prevent errors; then master over 20 valuable error-coding techniques. Architect your software to avoid key causes of failure, and learn layered techniques that simplify debugging and maintenance. Visual Basic 6: Error Coding and Layering also delivers the industry's most powerful VB project management strategies, from smart coding teams to hyper-libraries to adaptive development. Whether you're a VB6 developer, analyst, or manager, this is your single source for everything it takes to deliver outstanding software!
Sprache
Verlagsort
Verlagsgruppe
Zielgruppe
Für höhere Schule und Studium
Maße
Breite: 233 mm
Dicke: 19 mm
Gewicht
ISBN-13
978-0-13-017227-3 (9780130172273)
Copyright in bibliographic data and cover images is held by Nielsen Book Services Limited or by the publishers or by their respective licensors: all rights reserved.
Schweitzer Klassifikation
About the Author
Tyson Gill is Senior Solutions Developer at WinResources Computing, Inc. in Carlsbad, California. He also teaches Visual Basic at the University of California San Diego. Prior to joining WinResources, he spent six years as an independent consultant, producing applications for a wide variety of clients in Southern California. Before coming to California, Tyson was Associate Scientist at the ICI Research Center in Ohio, where his software innovations earned him formal recognition as a "Key Corporate Asset." He holds a Master's degree in Chemistry from the University of Wisconsin.
Tyson has contributed to books on Visual Basic and makes numerous presentations on Visual Basic program design, architecture, and error coding. He is active in the San Diego Visual Basic User's Group and has authored over a dozen technical articles. He also loves creative writing and has authored an unpublished novel and two screenplays. Tyson lives with his wife, Marcie, and teenage son, Rossen, near the ocean in Carlsbad, California.
1. Your Software Development Mission.
Drafting Your Mission. Retaining Corporate Knowledge. Standardizing the Creative Process. Error Coding. Coding Smarter. Identifying the Possible. Achieving the Possible. The Smart Coding Triangle. Barriers to Your Mission.
2. Understanding the Barriers to Your Mission.
Visual Basic Error Coding. Why Good Error Coding Is Seldom Achieved. "We Will Adapt." Achieving Good Error Coding. Barriers to Error Coding. Evaluating Error Coding. Barriers to Code Standardization. Barriers to Code Reuse. Eliminating the Barriers.
3. Implementing Effective Error Coding.
Raise Your Expectations. Manage Errors Early. Code Errors as You Go. Anticipate Errors. Prevent Errors. Handle Errors. Trap Errors. Report Errors. Avoid Assumptions. Design Functions for Reuse. Reuse Error Coding. Systematic Error Coding.
4. Explicit Coding.
Explicit Variable Usage. Arguments. Arrays. Coding Recommendations. Explicit Coding Is Fundamental.
5. Error Coding Mechanics.
Error Coding Is Not a Given. Visual Basic Error Handling. Without Error Handling. The Error Handler. On Error Resume Next. Error Suppression. On Error Goto. Resuming Program Execution. Multiple Error Handlers. Checking for Errors. Checking Err.Number. Handling the Error. Clearing the Error Object. Disabling the Error Handler. Scope of Error Handling. Error Bubbles. Errors within Errors. Changing Error Handlers. The Error Trap. The Error Trap Handler. Handling Errors In-Line. Raising Errors. Error Trap Block versus In-Line Error Handlers. When to Use the Error Trap Block. When to Use In-Line Error Handling. Avoiding Error Handling Completely.
6. Error Prevention.
Types of Errors. Types of Prevention. Preventing Coding Errors. Preventing User Errors. Form Preventative Habits.
7. Safe Coding Framework.
Reuse-Quality Routines. Safe Procedures. Safe Functions. Safe Error Messages. Defensive Functions. Defensive Subroutines. Safe Classes. Reuse of SPF Procedures. Self-Contained Procedures. Code Blocks. Naming Conventions. Arguments. Limited Scope. Counter Variables. Revision Numbering. Reuse-Quality Documentation. Cleanup. Using the SPF. Implementing the Standard.
8. SPF Sampler.
General Structure. Safe Error Utilities. Array Handling. Type Conversion and Data Validation. String Handling. Forms and Controls. Database Routines. Putting Safe Procedures to Work.
9. Corporate Strategies.
Smart Coding Teams. Cooperative Competition. Developing Your Standard. Creating Safe Procedures. Motivational Catalysis. Certifying for Reuse. Sharing Certified Procedures. Using Hyper-Libraries. Rewarding Lasting Contributions. Code Review through Certification. Adaptive Development. Eliminating Nontechnical Barriers. You're Not There Yet!
10. Program Architecture.
Modes of Program Failure. Beadwork Programs. Maintainability. Maintenance Nightmares. Implicit Business Logic. Architectural Dimensions. Lobes and Layers. Universal Layered Architecture. Reusable Layers. Layered Flow. Layering versus Binding. Layering versus Classes. Layering versus Tiers. Layer Packaging. Deploying Layers. Benefits of Layering. Layering Case Study. Datasets. Insulation from Technology Changes. Implementing a Layered Application.
11. Designing a Layered Application.
The Database. Planning Your Data Layer. Mapping Your Controls. Creating Your Layers. Pseudo-Coding the User Layer. Pseudo-Coding the Business Layer. Methods in the Data Layer. Methods in the User Connection Layer. Methods in the Data Connection Layer. Cool Features of Layered Applications. Creating a Safe Layered Library. Using Layer-Wrapped Controls. Take It from Here.
12. Accomplishing Your Mission.
Getting the Panoramic View. Assessing Your Success. Taking Your Next Steps. Keep the Ball Going!
Appendix A: Naming Conventions.
Appendix B: SPF Checklist.
Appendix C: Certification Rating Sheet.
Index.