Home > Store

Visual Basic 6: Error Coding and Layering

Register your product to gain access to bonus material or receive a coupon.

Visual Basic 6: Error Coding and Layering

  • Published Dec 13, 1999 by Pearson.

Book

  • This product currently is not for sale.
Not for Sale

Description

  • Copyright 2000
  • Dimensions: 7 X 9-1/4
  • Pages: 260
  • Edition: 1st
  • Book
  • ISBN-10: 0-13-017227-8
  • ISBN-13: 978-0-13-017227-3


1722G-0

  • Concrete, proven techniques for improving code quality
  • Integrated process improvement solutions for any Visual Basic project
  • Building a safe coding framework that resists bugs
  • Superior management strategies for successful Visual Basic development
  • Anticipating, handling, trapping, reporting, and preventing errors
  • For every Visual Basic developer, analyst, and manager!

How to design and write indestructible Visual Basic code!

If you're a Visual Basic professional who demands excellence, here's a start-to-finish plan for achieving it. In Visual Basic 6: Error Coding and Layering, Tyson Gill introduces innovative, fully integrated technical and management strategies for dramatically improving the results of any Visual Basic 6 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 Visual Basic project management strategies-from smart coding teams to hyper-libraries to adaptive development. Whether you're a Visual Basic 6 developer, analyst, or manager, this is your single source for everything it takes to deliver outstanding software!

Sample Content

Downloadable Sample Chapter

Click here for a sample chapter for this book: 0130172278.pdf

Table of Contents



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.

Preface

PREFACE

Coding Smarter

This book will help you improve the quality and productivity of your software development effort. By the time you finish reading it, you will know how to code smarter and to participate in a team effort to code smarter. You will have a better appreciation of the problems and pitfalls associated with Visual Basic programming and the common causes of project failure. You will also have a clear understanding of how to avoid those problems and to ensure the success of your project in the long term as well as in the short term.

This Book Is for You

If you have anything to do with computer programming, this book is for you. Whether you are an analyst, a programmer, a manager, or a related professional, you will find value in this book. Regardless of your experience level, from student to senior developer, this material is at the appropriate level for you. No matter what type of project you are involved in, this book will be applicable.

The scope of this book is broad, from general philosophies to specific lines of code. While many of the general approaches and attitudes presented in this book hold true no matter in what language you are developing, the specific problems and solutions detailed in this book are designed for Visual Basic development.

This is not another "learn Visual Basic" book. It does not simply rephrase and repackage information found in help files and computer books. It presents new and uniquely valuable strategies to overcome coding problems that plague virtually all Visual Basic programs. While it is not a programming book, it does teach programming techniques. It deals with the process of Visual Basic programming as opposed to the language details.

While this is not a management book, it does discuss management issues. While it is not a book about testing, it does deal with testing issues. In short, this book covers all the topics that are vital to a successful team program development effort. It sets an ambitious new standard of excellence for Visual Basic applications, and provides simple (and, in retrospect, obvious) techniques for achieving that new standard of productivity and quality.

This is not a neutral book detailing a specific technology or documenting the latest API or object model. On the contrary, it is a passionate book dealing with both technical and nontechnical issues. Sometimes, it may hit close to home. It may expose flaws in the attitudes and techniques that you may have been using for years. If it does, it will have succeeded in half its mission. If it succeeds in showing you how to overcome those flaws, then it will have succeeded completely.

Getting the Most from This Book

To get the greatest benefit from this book, it is essential that you read it straight through as though you were reading a novel. If you are used to reading technical books by browsing the contents or index and jumping from topic to topic, that approach will not work. Both the conceptual and the practical ideas build progressively through the course of the book, each flowing from previous material. Like a novel, it builds to a climax, at which point you may wonder how you can possibly improve your coding practice in spite of all the formidable antagonists. In the end, it reaches resolution, however, and shows you how you can overcome all obstacles by adopting relatively simple coding approaches.

It is also recommended that you read it at least twice. During the first reading, you may come across suggestions that you question. That is good, but file them away and continue reading. Then go back and read it again. Suggestions that you might reject or question during the first reading may seem more appealing after you see how they fit into the complete picture. During the second reading, you can selectively incorporate the suggestions into your own work, adapting them if necessary to your particular situation.

Acknowledgments

Thanks to J. Kevin Meadows, Ed Stegman, Edward Michelic, Marcie Gill, and Bill Munro for reviewing the manuscript. Thanks also to David Johnson for contributing illustrations. A big group thanks to the entire staff at WinResources for their support and encouragement. Finally, thanks to Waterside Productions and Prentice Hall for making this book a reality.

Updates

Submit Errata

More Information

InformIT Promotional Mailings & Special Offers

I would like to receive exclusive offers and hear about products from InformIT and its family of brands. I can unsubscribe at any time.

Overview


Pearson Education, Inc., 221 River Street, Hoboken, New Jersey 07030, (Pearson) presents this site to provide information about products and services that can be purchased through this site.

This privacy notice provides an overview of our commitment to privacy and describes how we collect, protect, use and share personal information collected through this site. Please note that other Pearson websites and online products and services have their own separate privacy policies.

Collection and Use of Information


To conduct business and deliver products and services, Pearson collects and uses personal information in several ways in connection with this site, including:

Questions and Inquiries

For inquiries and questions, we collect the inquiry or question, together with name, contact details (email address, phone number and mailing address) and any other additional information voluntarily submitted to us through a Contact Us form or an email. We use this information to address the inquiry and respond to the question.

Online Store

For orders and purchases placed through our online store on this site, we collect order details, name, institution name and address (if applicable), email address, phone number, shipping and billing addresses, credit/debit card information, shipping options and any instructions. We use this information to complete transactions, fulfill orders, communicate with individuals placing orders or visiting the online store, and for related purposes.

Surveys

Pearson may offer opportunities to provide feedback or participate in surveys, including surveys evaluating Pearson products, services or sites. Participation is voluntary. Pearson collects information requested in the survey questions and uses the information to evaluate, support, maintain and improve products, services or sites, develop new products and services, conduct educational research and for other purposes specified in the survey.

Contests and Drawings

Occasionally, we may sponsor a contest or drawing. Participation is optional. Pearson collects name, contact information and other information specified on the entry form for the contest or drawing to conduct the contest or drawing. Pearson may collect additional personal information from the winners of a contest or drawing in order to award the prize and for tax reporting purposes, as required by law.

Newsletters

If you have elected to receive email newsletters or promotional mailings and special offers but want to unsubscribe, simply email information@informit.com.

Service Announcements

On rare occasions it is necessary to send out a strictly service related announcement. For instance, if our service is temporarily suspended for maintenance we might send users an email. Generally, users may not opt-out of these communications, though they can deactivate their account information. However, these communications are not promotional in nature.

Customer Service

We communicate with users on a regular basis to provide requested services and in regard to issues relating to their account we reply via email or phone in accordance with the users' wishes when a user submits their information through our Contact Us form.

Other Collection and Use of Information


Application and System Logs

Pearson automatically collects log data to help ensure the delivery, availability and security of this site. Log data may include technical information about how a user or visitor connected to this site, such as browser type, type of computer/device, operating system, internet service provider and IP address. We use this information for support purposes and to monitor the health of the site, identify problems, improve service, detect unauthorized access and fraudulent activity, prevent and respond to security incidents and appropriately scale computing resources.

Web Analytics

Pearson may use third party web trend analytical services, including Google Analytics, to collect visitor information, such as IP addresses, browser types, referring pages, pages visited and time spent on a particular site. While these analytical services collect and report information on an anonymous basis, they may use cookies to gather web trend information. The information gathered may enable Pearson (but not the third party web trend services) to link information with application and system log data. Pearson uses this information for system administration and to identify problems, improve service, detect unauthorized access and fraudulent activity, prevent and respond to security incidents, appropriately scale computing resources and otherwise support and deliver this site and its services.

Cookies and Related Technologies

This site uses cookies and similar technologies to personalize content, measure traffic patterns, control security, track use and access of information on this site, and provide interest-based messages and advertising. Users can manage and block the use of cookies through their browser. Disabling or blocking certain cookies may limit the functionality of this site.

Do Not Track

This site currently does not respond to Do Not Track signals.

Security


Pearson uses appropriate physical, administrative and technical security measures to protect personal information from unauthorized access, use and disclosure.

Children


This site is not directed to children under the age of 13.

Marketing


Pearson may send or direct marketing communications to users, provided that

  • Pearson will not use personal information collected or processed as a K-12 school service provider for the purpose of directed or targeted advertising.
  • Such marketing is consistent with applicable law and Pearson's legal obligations.
  • Pearson will not knowingly direct or send marketing communications to an individual who has expressed a preference not to receive marketing.
  • Where required by applicable law, express or implied consent to marketing exists and has not been withdrawn.

Pearson may provide personal information to a third party service provider on a restricted basis to provide marketing solely on behalf of Pearson or an affiliate or customer for whom Pearson is a service provider. Marketing preferences may be changed at any time.

Correcting/Updating Personal Information


If a user's personally identifiable information changes (such as your postal address or email address), we provide a way to correct or update that user's personal data provided to us. This can be done on the Account page. If a user no longer desires our service and desires to delete his or her account, please contact us at customer-service@informit.com and we will process the deletion of a user's account.

Choice/Opt-out


Users can always make an informed choice as to whether they should proceed with certain services offered by InformIT. If you choose to remove yourself from our mailing list(s) simply visit the following page and uncheck any communication you no longer want to receive: www.informit.com/u.aspx.

Sale of Personal Information


Pearson does not rent or sell personal information in exchange for any payment of money.

While Pearson does not sell personal information, as defined in Nevada law, Nevada residents may email a request for no sale of their personal information to NevadaDesignatedRequest@pearson.com.

Supplemental Privacy Statement for California Residents


California residents should read our Supplemental privacy statement for California residents in conjunction with this Privacy Notice. The Supplemental privacy statement for California residents explains Pearson's commitment to comply with California law and applies to personal information of California residents collected in connection with this site and the Services.

Sharing and Disclosure


Pearson may disclose personal information, as follows:

  • As required by law.
  • With the consent of the individual (or their parent, if the individual is a minor)
  • In response to a subpoena, court order or legal process, to the extent permitted or required by law
  • To protect the security and safety of individuals, data, assets and systems, consistent with applicable law
  • In connection the sale, joint venture or other transfer of some or all of its company or assets, subject to the provisions of this Privacy Notice
  • To investigate or address actual or suspected fraud or other illegal activities
  • To exercise its legal rights, including enforcement of the Terms of Use for this site or another contract
  • To affiliated Pearson companies and other companies and organizations who perform work for Pearson and are obligated to protect the privacy of personal information consistent with this Privacy Notice
  • To a school, organization, company or government agency, where Pearson collects or processes the personal information in a school setting or on behalf of such organization, company or government agency.

Links


This web site contains links to other sites. Please be aware that we are not responsible for the privacy practices of such other sites. We encourage our users to be aware when they leave our site and to read the privacy statements of each and every web site that collects Personal Information. This privacy statement applies solely to information collected by this web site.

Requests and Contact


Please contact us about this Privacy Notice or if you have any requests or questions relating to the privacy of your personal information.

Changes to this Privacy Notice


We may revise this Privacy Notice through an updated posting. We will identify the effective date of the revision in the posting. Often, updates are made to provide greater clarity or to comply with changes in regulatory requirements. If the updates involve material changes to the collection, protection, use or disclosure of Personal Information, Pearson will provide notice of the change through a conspicuous notice on this site or other appropriate way. Continued use of the site after the effective date of a posted revision evidences acceptance. Please contact us if you have questions or concerns about the Privacy Notice or any objection to any revisions.

Last Update: November 17, 2020