#

design-patterns

Software design patterns

ProgrammingJava Design Patterns in Core Libraries: GoF Examples

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.

1 answer 1 view
ProgrammingTDD: Immutable Order Static Factory vs Mutable Java

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.

1 answer 1 view
ProgrammingCombine Order & Payment in Microservices: Modular Monolith

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.

1 answer 1 view
ProgrammingAdapter vs Strategy Pattern: How to Decide for Outputs

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.

1 answer 1 view
ProgrammingComprehensive .NET Dependency Injection & Services Guide

Practical guide to .NET dependency injection and services: fundamentals, service lifetimes, keyed services, advanced patterns. Books, Microsoft docs, tutorials.

1 answer 1 view