Adaptive code via C#

所需积分/C币:10 2015-01-20 13:27:39 32.5MB PDF
收藏 收藏

PUBLISHED BY Microsoft press A division of Microsoft Corporation One Microsoft Way Redmond, Washington 98052-6399 Copyright 2014 by Gary McLean Hall. All rights reserved No part of the contents of this book may be reproduced or transmitted in any form or by any means without the written permission of the publisher Library of congress Control Number: 2014943458 SBN:978-0-7356-8320-4 Printed and bound in the United states of america First Printing Microsoft Press books are available through booksellers and distributors worldwide. If you need support related tothisbook, hisbookat This book is provided"as-is"and expresses the authors views and opinions. The views, opinions and information expressed in this book, including URL and other Internet website references, may change without notice Some examples depicted herein are provided for illustration only and are fictitious. No real association or connection is intended or should be inferred Microsoftandthetrademarkslistedat"trademarkS"webpagearetrademarks of the microsoft group of companies. All other marks are property of their respective owners Acquisitions Editor: Devon musgrave Developmental Editor: Devon Musgrave Project Editor: Devon Musgrave Editorial Production: Online Training Solutions, InC (OTSI) Technical Reviewer: Jeremy Johnson Copyeditor: Kathy Krause(OTSI) Indexer: Krista Wall (OTSl) Cover: Twist Creative. Seattle and Joel Panchot For amelia rose - GARY MCLEAN HALL This page intentionally left blank Contents at a glance Introduction PART I AN AGILE FOUNDATION CHAPTER 1 Introduction to scrum CHAPTER 2 Dependencies and layering 43 chaPter 3 Interfaces and design patterns 93 CHAPTER 4 Unit testing and refactoring 125 PART I WRITING SOLID CODE CHAPTER 5 The single responsibility principle 169 CHAPTER 6 The open/closed principle 207 CHAPTER 7 The Liskov substitution principle 217 ChAPTeR 8 Interface segregation 251 CHAPTER9 Dependency injection 281 PARTⅢ ADAPTIVE SAMPLE CHAPTER 10 Adaptive sample: Introduction 325 CHAPTER 11 Adaptive sample: Sprint 1 337 CHAPTER 12 Adaptive sample: Sprint 2 365 Appendix A: Adaptive tools 379 Appendix B: GitHub code samples online ngex 387 About the quthor 403 This page intentionally left blank Contents Introduction PART I AN AGILE FOUNDATION Chapter 1 Introduction to Scrum Scrum versus waterfall 4 Roles and responsibiliti Product owner Scrum master Development team 8 Pigs and chickens Artifacts The Scrum board Charts and metrics 22 Backlogs The sprint 28 Release planning Sprint planning ...30 Daily Scrum Sprint dem 33 Sprint retrospective 34 Scrum calendar 36 Problems with Scrum and agile Maladaptive cod Conclusion What do you think of this book? We want to hear from you! Microsoft is interested in hearing your feedback so we can continually improve our books and learning resources for you to participate in a brief online survey please visit microsoft. com/learning/booksurvey Chapter 2 Dependencies and layering 43 The definition of dependency 44 A simple example Modeling dependencies in a directed graph 51 Managing dependencies Implementations versus interfa The new code smell 57 Alternatives to object construction 60 The Entourage anti-pattern ..63 The stairway pattern solving depender Dependency management with NuGet 77 ayering 81 Common patterns 82 Cross-cutting concerns 87 As ric layering Conclusion 91 Chapter 3 Interfaces and design patterns 93 What is an interface? 94 yntax Explicit implementation 97 Polymorphism ......101 Adaptive design patterns 102 The null object pattern 103 The Adapter pattern The Strategy pattern 111 Further versatility - typing IXIns 118 Fluent interfaces ..123 lu oncIUsIo 124 l Contents Chapter 4 Unit testing and refactoring 125 Unit testing 125 Arrange, Act, Assert ...126 Test-driven development .130 plex tests 35 Refactoring Changing existing code 151 A new account type 160 Conclusion 165 PART WRITING SOLID CODE Chapter 5 The single responsibility principle 169 Problem statement Refactoring for clarity 172 Refactoring for abstraction ...177 SRP and the decorator pattern 184 The composi pe Ite pattern 185 Predicate decorators Branching decorators 193 Lazy decorators .194 Logging decorators 195 Profiling decorato 196 Asynchronous decorators 200 Decorating properties and events ...203 Using the strategy pattern instead of switch 204 Conclusion 206 Contents

试读 127P Adaptive code via C#
立即下载 低至0.43元/次 身份认证VIP会员低至7折
撸起袖子加油干 好书下来先收藏。
kingyzf 挺好的,支持
jcp741101165 pdf 质量很不错,经典书籍
岩小黑 我英文太渣了
conanconv practical introduction to design pattern and principles
qq_15880759 看不太懂啊,郁闷
askgy 多谢楼主多谢楼主多谢楼主多谢楼主
baidu_25000043 对于Csharp的书,微软应该是左右权威的吧,加入了scrum的介绍,应该让oo事半功倍吧。
kenjimail 喜欢敏捷型开发的朋友们非常推荐你们一读。
Long_Vaction 好书啊,希望多一点这样的有深度的书
Adaptive code via C# 10积分/C币 立即下载
Adaptive code via C#第1页
Adaptive code via C#第2页
Adaptive code via C#第3页
Adaptive code via C#第4页
Adaptive code via C#第5页
Adaptive code via C#第6页
Adaptive code via C#第7页
Adaptive code via C#第8页
Adaptive code via C#第9页
Adaptive code via C#第10页
Adaptive code via C#第11页
Adaptive code via C#第12页
Adaptive code via C#第13页
Adaptive code via C#第14页
Adaptive code via C#第15页
Adaptive code via C#第16页
Adaptive code via C#第17页
Adaptive code via C#第18页
Adaptive code via C#第19页
Adaptive code via C#第20页

试读结束, 可继续阅读

10积分/C币 立即下载 >