- Author: Peter Ritchie
- Language: English
- Published: 2012
- Page:280
- Format: pdf
- Size: 3 MB
CONTENTS
Chapter 1: Working with Best Practices 7
Recommended practices 7
Intransitive "best" practices 9
Benefits of using practices 10
Not invented here syndrome 12
Beyond practices 13
Axiomatic practices 23
Patterns 23
Why practices? 23
The power of mantras 25
Summary 26
Chapter 2: Source Code Control Practices 29
Terminology 30
Principles 33
Recommended SCC software evaluation criteria 34
Organizing for source code control 36
Branching strategies 41
Commit (check-in) practices 46
Occasionally connected source control 48
Distributed source control 48
Summary 49
Chapter 3: Low-level C# Practices 51
Working with generics 51
Writing sequence and iterator members 52
Working with lambdas 54
Working with extension methods 57
Exception handling 61
Summary 73
Chapter 4: Architectural Practices 75
Terms 75
Decoupling 76
Data-based applications 81
Distributed architecture 89
Summary 93
Chapter 5: Recommended Practices for Deployment 95
Working with installers 96
Working with Windows Installer 96
Visual Studio Setup and Deployment projects 98
ClickOnce 103
Windows Installer XML (WiX) 104
Silent installations 116
Testing 117
Summary 119
Chapter 6: Automated Testing Practices 121
First principles 121
Test naming 128
Separate test projects or not? 130
Test styles 130
Object-orientation and tests 140
Fluent interfaces revisited 141
Mocking 143
Methodologies 144
Test coverage 147
Continuous testing 147
Round-tripping requirements and acceptance 148
Summary 150
Chapter 7: Optimizing Visual Studio 151
Visual Studio efficiency through configuration 151
Visual Studio efficiency through usage 164
Summary 171
Chapter 8: Parallelization Practices 173
Principles 174
Threads 178
Thread synchronization 179
Asynchronous operations 186
Division of labor 191
Task Parallel Library 194
Visual Studio 2012 asynchronous programming 200
Reactive Extensions 202
Summary 204
Chapter 9: Distributed Applications 205
Seeking scalability 206
Design options 206
Cloud 211
TCP/UDP 214
Debugging 214
Logging 215
Health monitoring 224
Summary 226
Chapter 10: Web Service Recommended Practices 227
Implementing WCF services 229
ASP.NET Web Services 244
Summary 249
Index 251
No comments:
Post a Comment