Cover image for Professional Refactoring in Visual Basic.
Professional Refactoring in Visual Basic.
Title:
Professional Refactoring in Visual Basic.
Author:
Arsenovski, Danijel.
ISBN:
9780470372548
Personal Author:
Edition:
1st ed.
Physical Description:
1 online resource (554 pages)
Contents:
Prefessional Refactoring in Visual Basic -- About the Author -- Credits -- Acknowledgments -- Contents -- Foreword -- Introduction -- Whom This Book Is For -- What This Book Covers -- How This Book Is Structured -- What You Need to Use This Book -- Conventions -- Smell, Refactoring, and Object-Oriented Design Principle Boxes -- Source Code -- Errata -- p2p.wrox.com -- Part I: Introduction to Refactoring -- Chapter 1: Refactoring: What's All the Fuss About? -- A Quick Refactoring Overview -- The Refactoring Process: A Closer Look -- Visual Basic and Refactoring -- Summary -- Chapter 2: A First Taste of Refactoring -- Calories Calculator Sample Application -- Refactoring in Action -- Implementing the Persistence Functionality -- Calories Calculator, Refactored Version -- Summary -- Chapter 3: Assembling a Refactoring Toolkit -- Using an Automated Refactoring Tool -- Unit-Testing Basics: The Testing Harness -- A Few Words about Version Control -- Summary -- Chapter 4: Rent-a-Wheels Application Prototype -- Interviewing the Client -- Taking the Initial Steps in the Rent-a-Wheels Project -- Making the Prototype Work -- Fast and Furious, a VB Approach to Programming -- From Prototype to Delivery Through the Refactoring Process -- Summary -- Part II: Preliminary VB Refactorings -- Chapter 5: Chameleon Language: From Weak Static Typing to Strong Dynamic Typing -- Option Explicit and Option Strict, the .NET Effect -- Setting Option Explicit On in Relaxed Code -- Setting Option Strict On in Relaxed Code -- Static Versus Dynamic Typing and Visual Basic -- Activating Explicit and Strict Compiler Options -- Summary -- Chapter 6: Error Handling: From Legacy to Structured in a Few Easy Steps -- Legacy Error Handling Versus Structured Error Handling -- The Benefits of Structured Error Handling -- Replacing the On Error Construct with Try-Catch-Finally.

Replacing Error Code with Exception Type -- Error Handling in the Rent-a-Wheels Application -- Summary -- Chapter 7: Basic Hygiene: Eliminating Dead Code, Reducing Scope, Using Explicit Imports, and Removing Unused References -- Eliminating Dead Code -- Reducing the Scope and Access Level of Unduly Exposed Elements -- Using Explicit Imports -- Removing Unused Assembly References -- Basic Hygiene in the Rent-a-Wheels Application -- Summary -- Part III: Getting Started with Standard Refactoring Transformations -- Chapter 8: From Problem Domain to Code: Closing the Gap -- Understanding the Problem Domain -- Naming Guidelines -- Published and Public Interfaces -- Rename and Safe Rename Refactoring in the Rent-a-Wheels Application -- Summary -- Chapter 9: The Method Extraction Remedy for Duplicated Code -- Why Keep Code Encapsulated and Details Hidden? -- Information and Implementation Hiding -- Decomposing Methods -- The Duplicated Code Smell -- Magic Literals -- Extract Method and Replace Magic Literal Refactoring in the Rent-a-Wheels Application -- Summary -- Chapter 10: Method Consolidation and Extraction Techniques -- Dealing with Temporary Variables -- Method Reorganization Heuristics -- Method Reorganization and Rent-a-Wheels -- Summary -- Part IV: Advanced Refactorings -- Chapter 11: Discovering Objects -- A Quick Object-Oriented Programming Overview -- Designing Classes -- Discovering Hidden Classes -- Summary -- Chapter 12: Advanced Object-Oriented Concepts and Related Refactorings -- Inheritance, Polymorphism, and Genericity -- Inheritance Abuse and Refactoring Solutions -- Making Use of Generics -- Inheritance and Generic Types in the Rent-a-Wheels Application -- Summary -- Chapter 13: Code Organization on a Large Scale -- Namespaces -- Assemblies -- Visual Basic Project File Structure Organization.

Namespace Organization and Windows Forms Inheritance in Rent-a-Wheels -- Summary -- Part V: Refactoring Applied -- Chapter 14: Refactoring to Patterns -- Design Patterns: What's All the Fuss About? -- Example Design Pattern: Abstract Factory -- Dependency Injection Pattern -- Refactoring to Patterns and Rent-a-Wheels Application -- Summary -- Chapter 15: LINQ and Other VB 2008 Enhancements -- Type Inference for Local Variables -- XML Productivity Enhancements -- Querying the Objects with LINQ -- Summary -- Chapter 16: The Future of Legacy VB Code -- To Migrate or Not To Migrate -- Preliminary VB 6 Refactorings -- Putting Your Migrated Code under a Testing Harness -- Upgrading Your Legacy Code -- Summary -- Appnedix A: Unleash Refactor! -- Appendix B: Rent-a-Wheels Prototype Internals and Intricacies -- Hand Over Button Click Event-Handling Code -- Receive Button Click Event-Handling Code -- Charge Button Click Event-Handling Code -- Change Branch Button Click Event-Handling Code -- To Maintenance and From Maintenance Button Click Event Code -- Administer Fleet Form -- Display Button Click Event-Handling Routine -- Summary -- Index.
Abstract:
In this one-of-a-kind book, Microsoft MVP Danijel Arsenovski shows you how to utilize the power of refactoring to improve the design of your existing code and become more efficient and productive. You?ll discover how to perform unit testing, refactoring to patterns, and refactoring to upgrade legacy Visual Basic code. As you progress through the chapters, you?ll build a prototype application from scratch as Arsenovski walks you step-by-step through each process while offering expert coding tips.
Local Note:
Electronic reproduction. Ann Arbor, Michigan : ProQuest Ebook Central, 2017. Available via World Wide Web. Access may be limited to ProQuest Ebook Central affiliated libraries.
Electronic Access:
Click to View
Holds: Copies: