Wrox professional refactoring in visual basic apr 2008 ISBN 0470179791 pdf

555 136 0
Wrox professional refactoring in visual basic apr 2008 ISBN 0470179791 pdf

Đang tải... (xem toàn văn)

Tài liệu hạn chế xem trước, để xem đầy đủ mời bạn chọn Tải xuống

Thông tin tài liệu

79796ffirs.qxd:WroxPro 2/22/08 4:57 PM Page iii Professional Refactoring in Visual Basic® Danijel Arsenovski 79796ffirs.qxd:WroxPro 2/22/08 4:57 PM Page v To Paola 79796ffirs.qxd:WroxPro 2/22/08 4:57 PM Page i Professional Refactoring in Visual Basic® Introduction xxi Part I: Introduction to Refactoring Chapter 1: Refactoring: What’s All the Fuss About? 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 79796ffirs.qxd:WroxPro 2/22/08 4:57 PM Page ii 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 79796ffirs.qxd:WroxPro 2/22/08 4:57 PM Page iii Professional Refactoring in Visual Basic® Danijel Arsenovski 79796ffirs.qxd:WroxPro 2/22/08 4:57 PM Page iv Professional Refactoring in Visual Basic® Published by Wiley Publishing, Inc 10475 Crosspoint Boulevard Indianapolis, IN 46256 www.wiley.com Copyright © 2008 by Wiley Publishing, Inc., Indianapolis, Indiana Published simultaneously in Canada ISBN: 978-0-470-17979-6 Manufactured in the United States of America 10 Library of Congress Cataloging-in-Publication Data Arsenovski, Danijel, 1973– Professional refactoring in Visual Basic / Danijel Arsenovski p cm Includes bibliographical references and index ISBN 978-0-470-17979-6 (paper/website) Microsoft Visual BASIC Computer software—Development Source code (Computer science) I Title QA76.76.D47A772 2008 005.2'762—dc22 2008001376 No part of this publication may be reproduced, stored in a retrieval system or transmitted in any form or by any means, electronic, mechanical, photocopying, recording, scanning or otherwise, except as permitted under Sections 107 or 108 of the 1976 United States Copyright Act, without either the prior written permission of the Publisher, or authorization through payment of the appropriate per-copy fee to the Copyright Clearance Center, 222 Rosewood Drive, Danvers, MA 01923, (978) 750-8400, fax (978) 646-8600 Requests to the Publisher for permission should be addressed to the Legal Department, Wiley Publishing, Inc., 10475 Crosspoint Blvd., Indianapolis, IN 46256, (317) 572-3447, fax (317) 572-4355, or online at http://www.wiley.com/go/permissions Limit of Liability/Disclaimer of Warranty: The publisher and the author make no representations or warranties with respect to the accuracy or completeness of the contents of this work and specifically disclaim all warranties, including without limitation warranties of fitness for a particular purpose No warranty may be created or extended by sales or promotional materials The advice and strategies contained herein may not be suitable for every situation This work is sold with the understanding that the publisher is not engaged in rendering legal, accounting, or other professional services If professional assistance is required, the services of a competent professional person should be sought Neither the publisher nor the author shall be liable for damages arising herefrom The fact that an organization or Website is referred to in this work as a citation and/or a potential source of further information does not mean that the author or the publisher endorses the information the organization or Website may provide or recommendations it may make Further, readers should be aware that Internet Websites listed in this work may have changed or disappeared between when this work was written and when it is read For general information on our other products and services please contact our Customer Care Department within the United States at (800) 762-2974, outside the United States at (317) 572-3993 or fax (317) 572-4002 Trademarks: Wiley, the Wiley logo, Wrox, the Wrox logo, Wrox Programmer to Programmer, and related trade dress are trademarks or registered trademarks of John Wiley & Sons, Inc and/or its affiliates, in the United States and other countries, and may not be used without written permission Visual Basic is a registered trademark of Microsoft Corporation in the United States and/or other countries All other trademarks are the property of their respective owners Wiley Publishing, Inc., is not associated with any product or vendor mentioned in this book Wiley also publishes its books in a variety of electronic formats Some content that appears in print may not be available in electronic books 79796ffirs.qxd:WroxPro 2/22/08 4:57 PM Page v To Paola 79796ffirs.qxd:WroxPro 2/22/08 4:57 PM Page vi About the Author Danijel Arsenovski is a software developer from Santiago, Chile Currently, he works as Product and Solutions Architect at Excelsys S.A, designing Internet banking solutions for numerous clients in the region He started experimenting with refactoring while overhauling a huge banking system, and he hasn’t lost interest in refactoring ever since He pioneered the use of refactoring as a vehicle for a VB code upgrade to VB NET Arsenovski is a contributing author for Visual Studio Magazine and Visual Systems Journal, holds a Microsoft Certified Solution Developer (MCSD) certification, and was named Visual Basic MVP in 2005 You can reach him at danijel.arsenovski@empoweragile.com, and you can take a look at his blog at http://blog.vbrefactoring.com 79796ffirs.qxd:WroxPro 2/22/08 4:57 PM Page vii Credits Acquisitions Editor Vice President and Executive Group Publisher Katie Mohr Richard Swadley Senior Development Editor Vice President and Executive Publisher Kevin Kent Joseph B Wikert Technical Editor Project Coordinator, Cover Doug Holland Lynsey Stanford Copy Editors Compositor S B Kleinman Mildred Sanchez Craig James Woods, Happenstance Type-O-Rama Editorial Manager Proofreader Mary Beth Wakefield Word One Production Manager Indexer Tim Tate Johnna VanHoose Dinse ... Interviewing the Client Interviewing Interviewing Interviewing Interviewing the Manager the Desk Receptionist the Parking Lot Attendant Maintenance Personnel Taking the Initial Steps in the Rent-a-Wheels... designing Internet banking solutions for numerous clients in the region He started experimenting with refactoring while overhauling a huge banking system, and he hasn’t lost interest in refactoring. .. 79796ffirs.qxd:WroxPro 2/22/08 4:57 PM Page iv Professional Refactoring in Visual Basic Published by Wiley Publishing, Inc 10475 Crosspoint Boulevard Indianapolis, IN 46256 www.wiley.com Copyright © 2008

Ngày đăng: 20/03/2019, 14:44

Mục lục

  • Prefessional Refactoring in Visual Basic

    • About the Author

    • Introduction

      • Whom This Book Is For

      • What This Book Covers

      • How This Book Is Structured

      • What You Need to Use This Book

      • Smell, Refactoring, and Object-Oriented Design Principle Boxes

      • 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

          • Chapter 2: A First Taste of Refactoring

            • Calories Calculator Sample Application

            • Implementing the Persistence Functionality

            • Calories Calculator, Refactored Version

            • Chapter 3: Assembling a Refactoring Toolkit

              • Using an Automated Refactoring Tool

              • Unit-Testing Basics: The Testing Harness

              • A Few Words about Version Control

              • 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

Tài liệu cùng người dùng

  • Đang cập nhật ...

Tài liệu liên quan