Wrox - Professional Refactoring in Visual Basic.pdf

(6475 KB) Pobierz
377170150 UNPDF
377170150.003.png
Professional
Refactoring in Visual Basic ®
Danijel Arsenovski
377170150.004.png 377170150.005.png
To Paola
377170150.006.png
Professional
Refactoring in Visual Basic®
Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xxi
Part I: Introduction to Refactoring
Chapter 1: Refactoring: What’s All the Fuss About? . . . . . . . . . . . . . . . . . . . . 3
Chapter 2: A First Taste of Refactoring . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19
Chapter 3: Assembling a Refactoring Toolkit . . . . . . . . . . . . . . . . . . . . . . . . 59
Chapter 4: Rent-a-Wheels Application Prototype . . . . . . . . . . . . . . . . . . . . . . 87
Part II: Preliminary VB Refactorings
Chapter 5: Chameleon Language: From Weak Static Typing to
Strong Dynamic Typing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 109
Chapter 6: Error Handling: From Legacy to Structured in a
Few Easy Steps . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 147
Chapter 7: Basic Hygiene: Eliminating Dead Code, Reducing Scope,
Using Explicit Imports, and Removing Unused References . . . . . 173
Part III: Getting Started with Standard Refactoring
Transformations
Chapter 8: From Problem Domain to Code: Closing the Gap. . . . . . . . . . . . . 197
Chapter 9: The Method Extraction Remedy for Duplicated Code . . . . . . . . . 219
Chapter 10: Method Consolidation and Extraction Techniques . . . . . . . . . . 243
Part IV: Advanced Refactorings
Chapter 11: Discovering Objects . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 271
Chapter 12: Advanced Object-Oriented Concepts and
Related Refactorings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 323
Chapter 13: Code Organization on a Large Scale. . . . . . . . . . . . . . . . . . . . . 371
Continues
377170150.001.png
Part V: Refactoring Applied
Chapter 14: Refactoring to Patterns. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 407
Chapter 15: LINQ and Other VB 2008 Enhancements . . . . . . . . . . . . . . . . . 439
Chapter 16: The Future of Legacy VB Code. . . . . . . . . . . . . . . . . . . . . . . . . 465
Appendix A: Unleash Refactor!. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 483
Appendix B: Rent-a-Wheels Prototype Internals and Intricacies . . . . . . . . . 487
Index . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 507
377170150.002.png
Zgłoś jeśli naruszono regulamin