SKIP THE SHIPPING
Use code NOSHIP during checkout to save 40% on eligible eBooks, now through January 5. Shop now.
This PDF will be accessible from your Account page after purchase and requires PDF reading software, such as Acrobat® Reader®.
The eBook requires no passwords or activation to read. We customize your eBook by discreetly watermarking it with your name, making it uniquely yours.
Also available in other formats.
Register your product to gain access to bonus material or receive a coupon.
This is the eBook version of the printed book. If the print book includes a CD-ROM, this content is not included within the eBook version.
With the award-winning book Agile Software Development: Principles, Patterns, and Practices, Robert C. Martin helped bring Agile principles to tens of thousands of Java and C++ programmers. Now .NET programmers have a definitive guide to agile methods with this completely updated volume from Robert C. Martin and Micah Martin, Agile Principles, Patterns, and Practices in C#.
This book presents a series of case studies illustrating the fundamentals of Agile development and Agile design, and moves quickly from UML models to real C# code. The introductory chapters lay out the basics of the agile movement, while the later chapters show proven techniques in action. The book includes many source code examples that are also available for download from the authors’ Web site.
Readers will come away from this book understanding
Whether you are a C# programmer or a Visual Basic or Java programmer learning C#, a software development manager, or a business analyst, Agile Principles, Patterns, and Practices in C# is the first book you should read to understand agile software and how it applies to programming in the .NET Framework.
Please register your book to gain access to the downloadable source code files.
The Agile Alliance 4
Principles 8
Conclusion 10
Bibliography 11
The Practices of Extreme Programming 14
Conclusion 22
Bibliography 22
Initial Exploration 24
Release Planning 25
Iteration Planning 25
Defining “Done” 26
Task Planning 26
Iterating 27
Tracking 28
Conclusion 29
Bibliography 29
Test-Driven Development 32
Acceptance Tests 36
Serendipitous Architecture 37
Conclusion 38
Bibliography 39
A Simple Example of Refactoring: Generating Primes 42
Conclusion 53
Bibliography 54
The Bowling Game 56
Conclusion 98
Overview of the Rules of Bowling 99
Design Smells 104
Why Software Rots 107
The Copy
Program 108
Conclusion 113
Bibliography 114
Defining a Responsibility 117
Separating Coupled Responsibilities 119
Persistence 119
Conclusion 119
Bibliography 120
Description of OCP 122
The Shape
Application 124
Conclusion 132
Bibliography 133
Violations of LSP 136
Factoring Instead of Deriving 148
Heuristics and Conventions 150
Conclusion 151
Bibliography 151
Layering 154
A Simple DIP Example 157
The Furnace Example 160
Conclusion 161
Bibliography 162
Interface Pollution 163
Separate Clients Mean Separate Interfaces 165
Class Interfaces versus Object Interfaces 166
The ATM User Interface Example 169
Conclusion 174
Bibliography 175
Class Diagrams 180
Object Diagrams 182
Collaboration Diagrams 183
State Diagrams 184
Conclusion 185
Bibliography 185
Why Model? 187
Making Effective Use of UML 189
Iterative Refinement 194
When and How to Draw Diagrams 200
Conclusion 202
The Basics 204
Using FSM Diagrams 208
Conclusion 209
A Snapshot in Time 212
Active Objects 213
Conclusion 217
Writing Use Cases 220
Diagramming Use Cases 222
Conclusion 223
Bibliography 223
The Basics 226
Advanced Concepts 232
Conclusion 241
The Basics 244
An Example Class Diagram 247
The Details 249
Conclusion 258
Bibliography 258
The Mark IV Special Coffee Maker 260
OOverkill 279
Bibliography 292
Rudimentary Specification of the Payroll System 294
Exercise 295
Simple Commands 300
Transactions 302
Undo
Method 304
Active Object 305
Conclusion 310
Bibliography 310
Template Method 312
Strategy 319
Conclusion 324
Bibliography 324
Facade 325
Mediator 327
Conclusion 329
Bibliography 329
Singleton 332
Monostate 336
Conclusion 343
Bibliography 343
Description 345
Conclusion 348
Bibliography 348
Rudimentary Specification 350
Analysis by Use Cases 351
Reflection: Finding the Underlying Abstractions 360
Conclusion 363
Bibliography 363
Transactions 366
Main Program 408
The Database 409
Conclusion 411
About This Chapter 411
Bibliography 412
Packages and Components 416
Principles of Component Cohesion: Granularity 417
Principles of Component Coupling: Stability 420
Conclusion 435
A Dependency Problem 440
Static versus Dynamic Typing 441
Substitutable Factories 442
Using Factories for Test Fixtures 443
Importance of Factories 444
Conclusion 445
Bibliography 445
Component Structure and Notation 448
Applying the Common Closure Principle (CCP) 450
Applying the Reuse/Release Equivalence Principle (REP) 452
Coupling and Encapsulation 454
Metrics 455
Applying the Metrics to the Payroll Application 457
The Final Packaging Structure 463
Conclusion 465
Bibliography 465
Composite Commands 469
Multiplicity or No Multiplicity 470
Conclusion 470
The Digital Clock 472
The Observer Pattern 491
Conclusion 493
Bibliography 494
Abstract Server 496
Adapter 498
Bridge 503
Conclusion 505
Bibliography 506
Proxy 508
Databases, Middleware, and Other Third-Party Interfaces 526
Table Data Gateway 528
Using Other Patterns with Databases 539
Conclusion 541
Bibliography 541
VISITOR 544
Acyclic Visitor 548
Decorator 560
Extension Object 565
Conclusion 576
Bibliography 577
Nested Switch/Case
Statements 580
Transition Tables 584
The State Pattern 586
Classes of State Machine Application 598
Conclusion 602
Bibliography 602
Building the Database 604
A Flaw in the Code Design 605
Adding an Employee 607
Transactions 618
Loading an Employee 623
What Remains? 636
The Interface 639
Implementation 640
Building a Window 650
The Payroll Window 657
The Unveiling 669
Conclusion 670
Bibliography 670
Rufus Inc.: Project Kickoff 671
Rupert Industries: Project Alpha 671