Table of Contents
Preface
Part 1: Introduction to Patterns (Pasta) and Antipatterns (Antipasta)
1
There’s a Big Ball of Mud on Your Plate of Spaghetti
Technical requirements
No battle plan survives first contact with the enemy
The Stovepipe system
The Big Ball of Mud
Time
Cost
Experience
Skill
Visibility
Complexity
Change
Scale
The Golden Hammer
A throwaway code example
How can patterns help?
Summary
Questions
Further reading
2
Prepping for Practical Real-World Applications of Patterns in C#
Becoming a prepper
Technical requirements
Spaghetti < lasagna < ravioli – software evolution explained with pasta
Spaghetti code
Lasagna code
Ravioli – the ultimate in pasta code
The foundational principle – writing clean code
You should write code that ...
Get Real-World Implementation of C# Design Patterns now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.