Let’s talk patterns
summary
Walks through concrete C#/.NET implementations of common patterns with runnable samples on GitHub: adapter maps one API to another, decorator adds behavior like caching or batching by wrapping an interface, and circuit breaker short-circuits failing HTTP calls to avoid cascading outages. Covers facade, proxy, bridge, visitor, repository pitfalls (don’t expose IQueryable, don’t put Save in repos), unit of work as the place to Complete transactions, factory for object creation, and null object to remove null checks; code compiles and demos run locally.
AI-written summary · about
chapters (12)
- 0:00Introduction to patterns
- 1:32Pattern context and history
- 7:05The adapter pattern
- 10:02The decorator pattern
- 14:52The facade pattern
- 17:25The proxy pattern
- 20:21The bridge pattern
- 25:58Patterns code examples
- 33:04The visitor pattern
- 41:10The circuit breaker pattern
- 46:58Repository and unit of work
- 55:24Factories and null objects
related talks
01h 01mASP.NET Basics for Experts
32mDemystifying Design Patterns: A Practical Guide for Developers
50mDesign Patterns for Loosely Coupled Applications
25mDesign Patterns Unleashed: Building Elegant and Confident Solutions
01h 02mPatterns for application development with ASP.NET Core
01h 07mDesign Patterns in Modern C++
01h 01mASP.NET Basics for Experts
36mApplication Architecture Patterns
