design-patterns
Software design patterns
Explore real-world implementations of Gang of Four design patterns in Java's core libraries. Learn how Singleton, Factory, Observer, and other patterns are used in Java API.
In test driven development, model 'place order' intent with static factory, private constructor, and OrderState enum. Advantages over mutable setters, trade-offs, DDD tips, and TDD code examples for Java design patterns.
Learn microservices patterns to combine Order and Payment in a single service using modular monolith, bounded contexts, ports-and-adapters, and saga patterns for clean boundaries and easy future extraction into independent microservices.
Learn Adapter vs Strategy pattern for multiple outputs like console, file, email. Decision criteria: intent, interface compatibility, runtime selection, coupling. Design patterns examples in C# and Java.
Practical guide to .NET dependency injection and services: fundamentals, service lifetimes, keyed services, advanced patterns. Books, Microsoft docs, tutorials.