Ritchie Inc. Software Consulting Co., a software consulting company in Canada,s National Capital Region, which specializes in Windows-based software development management, process, and implementation consulting. Peter has worked with clients such as Mitel, Nortel, Passport Canada, and Innvapost, from mentoring, to architecture, to implementation. He has considerable experience in building software development teams and working with startups towards agile software development. Peter,s experience ranges from designing and implementing simple stand-alone applications, to architecting n-tier applications spanning dozens of computers, and from C++ to C#. Peter is active in the software development community, attending and speaking at various events, as well as authoring various works including Refactoring with Microsoft Visual Studio 2010, Packt Publishing. There are countless number of people that have contributed to my knowledge and motivation to contribute to the community with projects like this book. In particular, I would like to thank Joe Miller for his sharp eyes and having clearly better editing abilities than mine.
www.it-ebooks.info Visual Studio 2010 Best Practices Learn and implement recommended practices for the complete software development life cycle with Visual Studio 2010 Peter Ritchie BIRMINGHAM - MUMBAI www.it-ebooks.info Visual Studio 2010 Best Practices Copyright © 2012 Packt Publishing All rights reserved No part of this book may be reproduced, stored in a retrieval system, or transmitted in any form or by any means, without the prior written permission of the publisher, except in the case of brief quotations embedded in critical articles or reviews Every effort has been made in the preparation of this book to ensure the accuracy of the information presented However, the information contained in this book is sold without warranty, either express or implied Neither the author, nor Packt Publishing, and its dealers and distributors will be held liable for any damages caused or alleged to be caused directly or indirectly by this book Packt Publishing has endeavored to provide trademark information about all of the companies and products mentioned in this book by the appropriate use of capitals However, Packt Publishing cannot guarantee the accuracy of this information First published: August 2012 Production Reference: 1170812 Published by Packt Publishing Ltd Livery Place 35 Livery Street Birmingham B3 2PB, UK ISBN 978-1-84968-716-4 www.packtpub.com Cover Image by Sandeep Babu (sandyjb@gmail.com) www.it-ebooks.info Credits Author Project Coordinator Peter Ritchie Joel Goveya Reviewers Proofreader Ognjen Bajic Joel T Johnson Carlos Hulot Indexer Ahmed Ilyas Rekha Nair Ken Tucker Graphics Acquisition Editor Valentina D,silva Rashmi Phadnis Manu Joseph Lead Technical Editor Dayan Hyames Production Coordinators Aparna Bhagat Nitesh Thakur Technical Editors Manmeet Singh Vasir Cover Work Merin Jose Manasi Poonthottam Aparna Bhagat Nitesh Thakur www.it-ebooks.info About the Author Peter Ritchie is a software development consultant He is the president of Peter Ritchie Inc Software Consulting Co., a software consulting company in Canada,s National Capital Region, which specializes in Windows-based software development management, process, and implementation consulting Peter has worked with clients such as Mitel, Nortel, Passport Canada, and Innvapost, from mentoring, to architecture, to implementation He has considerable experience in building software development teams and working with startups towards agile software development Peter,s experience ranges from designing and implementing simple stand-alone applications, to architecting n-tier applications spanning dozens of computers, and from C++ to C# Peter is active in the software development community, attending and speaking at various events, as well as authoring various works including Refactoring with Microsoft Visual Studio 2010, Packt Publishing There are countless number of people that have contributed to my knowledge and motivation to contribute to the community with projects like this book In particular, I would like to thank Joe Miller for his sharp eyes and having clearly better editing abilities than mine I would also like to thank my wife Sherry for the continued love and support despite all the extra time I had to put into projects like book writing I would also like to thank my parents, Helen and Bruce; I still miss you www.it-ebooks.info About the Reviewers Carlos Hulot has been working in the IT area for more than 20 years in different capabilities, from software development, project management, to IT marketing, product development, and management He has worked for multinational companies such as Royal Philips Electronics, Pricewaterhouse Coopers, and Microsoft Carlos currently works as an independent IT consultant He is also a Computer Science lecturer at two Brazilian universities Carlos holds a Ph.D in Computer Science and Electronics from the University of Southampton, UK and a B.Sc in Physics from University of São Paulo, Brazil Ahmed Ilyas has a BEng degree from Napier University in Edinburgh, Scotland, having majored in Software development He has 15 years of professional experience in software development After leaving Microsoft, Ahmed ventured into setting up his consultancy company Sandler Ltd (UK), offering the best possible solutions for a magnitude of industries, and providing real-world answers to those problems The company uses the Microsoft stack to build these technologies Being able to bring in the best practices, patterns, and software to its client base for enabling long term stability and compliance in the ever changing software industry, pushing the limits in technology, as well as improving software developers around the globe Ahmed has been awarded the MVP in C# by Microsoft three times, for providing excellence and independent real-world solutions to problems that developers face Ahmed,s breadth and depth of knowledge has been obtained from his research and from the valuable wealth of information and research at Microsoft By knowing the fact that 90 percent of the world uses at least one form of Microsoft technology, motivates and inspires him www.it-ebooks.info Ahmed has worked for a number of clients and employers With the great reputation that he has, it has resulted in having a large client base for his consultancy company, which includes clients from different industries From media to medical and beyond Some clients have included him on their "approved contractors/consultants" list The list includes ICS Solution Ltd (placed on their DreamTeam portal) and also EPS Software Corp (based in the USA) I would like to thank the author and the publisher for giving me the opportunity to review this book I would also like to thank my client base and especially my colleagues at Microsoft for enabling me to become a reputable leader as a software developer in the industry, which is my passion Ken Tucker is a Microsoft MVP (2003–present) in Visual Basic and currently works at Amovius LLC in Melbourne, Florida (FL) He is also the President of the Space Coast Net User Group and a frequent speaker at Florida Code Camps Ken be reached at Ken@VB-Tips.com I'd like to thank my wife Alice-Marie www.it-ebooks.info www.PacktPub.com Support files, eBooks, discount offers and more You might want to visit www.PacktPub.com for support files and downloads related to your book Did you know that Packt offers eBook versions of every book published, with PDF and ePub files available? You can upgrade to the eBook version at www.PacktPub.com and as a print book customer, you are entitled to a discount on the eBook copy Get in touch with us at service@packtpub.com for more details At www.PacktPub.com, you can also read a collection of free technical articles, sign up for a range of free newsletters and receive exclusive discounts and offers on Packt books and eBooks http://PacktLib.PacktPub.com Do you need instant solutions to your IT questions? PacktLib is Packt,s online digital book library Here, you can access, read and search across Packt,s entire library of books Why Subscribe? • Fully searchable across every book published by Packt • Copy and paste, print and bookmark content • On demand and accessible via web browser Free Access for Packt account holders If you have an account with Packt at www.PacktPub.com, you can use this to access PacktLib today and view nine entirely free books Simply use your login credentials for immediate access Instant Updates on New Packt Books Get notified! Find out when new books are published by following @PacktEnterprise on Twitter, or the Packt Enterprise Facebook page www.it-ebooks.info www.it-ebooks.info Table of Contents Preface 1 Chapter 1: Working with Best Practices Recommended practices Intransitive "best" practices Benefits of using practices Avoiding pragmatic re-use Reducing technical debt Not invented here syndrome Beyond practices Using katas Reaching kaizen Aspects of a practice Evaluating practices Documenting practices 10 11 11 12 13 13 14 15 15 16 Evolving practices—a collaborative effort Axiomatic practices Patterns Why practices? 22 23 23 23 Geographic distribution 16 17 Team size Regulatory compliance 17 Domain complexity 17 Organizational distribution 17 Technical complexity 17 Organizational complexity 18 Enterprise discipline 18 Life-cycle scope 18 Paradigm 18 Categorization 19 In this book 22 www.it-ebooks.info ... know yet This book is a compilation of the best practices of programming with Visual Studio Visual Studio 2010 Best Practices will take you through the practices you need to master programming.. .Visual Studio 2010 Best Practices Learn and implement recommended practices for the complete software development life cycle with Visual Studio 2010 Peter Ritchie BIRMINGHAM... Working with Best Practices Recommended practices Intransitive "best" practices Benefits of using practices Avoiding pragmatic re-use Reducing technical debt Not invented here syndrome Beyond practices