From the Inside Flap
Visual Basic (VB) has become the most popular programming language in the United States. It is a large language and a complex product. Yet the ease with which it builds graphical user interfaces, accesses databases, and supports the Component Object Model (COM) is impressive. This book is written by VB programmers for VB programmers. We assume you have been working with VB for quite some time and, if youre lucky, in a variety of ways: building front ends, reading databases, generating Web pages, programming COM objects. The goal of this book is to summarize a number of effective VB techniques that we have learnedand put into practiceover the years. This book has something for everyone, from general practices and COM-based components to COM+ and distributed applications. The wider your exposure to VB and the Windows Distributed Internet Application Architecture (DNA), the more applicable youll find the techniques. We follow the style of other books in the DevelopMentor series, in that each technique stands alone as an independent item ready for application. We try our best to describe each item as concisely as possible, and to let you read the book in any order you like. In a few cases, however, one rule leads quite naturally to another and thus should be read in that order; well point these dependencies out to you. If weve done our job, then reading this bookand taking its ideas to heartwill make you a more effective VB programmer. It will also make you a better practitioner because your skills will improve in other areas as well, such as object-oriented design, MTS, databases, and the Web.
Acknowledgments We all work for a developer services company called DevelopMentor. Its how we met, and how we keep abreast of the technology. Its also a fantastic place to spend ones working hours, and we owe this book (and much more) to our friends and coworkers at DM. If you ever want to see what DevelopMentor is all about, attend one of our Guerilla eventsand be sure not to miss out on Thursday night. By the way, its not just the employees that make DM; its also the students and their energy. Thank you. We also thank Gary Clarke for his sustained effort in getting this project off the ground and flying. We owe a great deal, as well, to Kristin Erickson (and her coworkers!) at Addison-Wesley for her tireless work behind the scenes, bringing this book to completion. The anonymous reviewers did an excellent job, and we thank them for their hard work under a tight schedule. The book is much better as a result. Finally, wed like to thank our families for their boundless support and understanding during our late nights of reading, researching, writing, and reinstalling Windows. 0201704765P05222001
From the Back Cover
Featuring nearly fifty rules for best practice, EFFECTIVE VISUAL BASIC gives the working programmer concrete guidelines for des
Featuring nearly fifty rules for best practice, EFFECTIVE VISUAL BASIC gives the working programmer concrete guidelines for designing better systems and writing better code. Whether the focus is COM, databases, or distributed systems using MTS and COM+, this book offers proven, timeless solutions derived from the authors years of experience consulting and training in the VB arena.
EFFECTIVE VISUAL BASIC addresses general practices, from defensive programming to error handling and object-oriented design. In addition, it covers the critical issues in working with COM: interfaces, compatibility, and class design. Rules for building multi-tier applications are followed by a section on best practices for programming the Web. This book also addresses databases and effective data access, among the most important uses of VB.
- Sound programming practices and object-oriented design principles, as applicable in VB.NET as in VB6
- Writing code that runs correctly in both MTS and COM+ environments
- Improving scalability by not necessarily configuring all your components
- Using XML, IIS, and ASP in Web applications
- Designing classes for efficient database access
The product of a wealth of practical experience, EFFECTIVE VISUAL BASIC enables readers to advance their skills and become more effective software developers.