Best of Design PatternsJuly 2025

  1. 1
    Article
    Avatar of minersThe Miners·47w

    What you need to know about frontend design patterns

    Design patterns provide reusable solutions to common programming problems. Custom hooks in React exemplify this concept by allowing developers to extract and reuse stateful logic across components. The guide demonstrates how to create custom hooks for data fetching with loading states and currency formatting, showing how they improve code organization, reusability, and maintainability by separating concerns and following DRY principles.

  2. 2
    Article
    Avatar of netguruNetguru·43w

    Hidden React Architecture Patterns That Senior Developers Actually Use

    Advanced React architecture patterns used by senior developers include Compound Component Architecture for managing shared state without prop drilling, Prop Getters pattern for creating reusable interactions with composed event handlers, and strategic choices between Controlled vs Uncontrolled components. These patterns enable building scalable, maintainable applications with cleaner APIs, better accessibility, and more intuitive component relationships through techniques like Context API, cloneElement, and state composition.

  3. 3
    Article
    Avatar of freecodecampfreeCodeCamp·43w

    Object-Oriented Design Patterns with Java

    A comprehensive guide to essential object-oriented design patterns implemented in Java, covering Strategy, Singleton, Composite, Decorator, State, Observer, Proxy, Factory, and Visitor patterns. Each pattern is explained with practical examples and interactive code playbacks that demonstrate how to solve common programming problems through reusable solutions. The tutorial focuses on leveraging inheritance and polymorphism to create flexible, maintainable code architectures.

  4. 4
    Article
    Avatar of baeldungBaeldung·45w

    How to Implement a Thread-Safe Singleton in Java?

    Explores multiple approaches to implementing thread-safe Singleton patterns in Java, including synchronized methods, eager initialization, double-checked locking, Bill Pugh pattern, and enum singletons. Compares their performance trade-offs and provides practical examples with test code to demonstrate thread safety in concurrent environments.