About 400 results
Open links in new tab
  1. Code Examples of Design Patterns - refactoring.guru

    Code examples of design patterns in various languages: C#, C++, Go, Java, PHP, Python, Ruby, Rust, Swift, TypeScript, and more.

  2. Design Patterns - refactoring.guru

    Check out our ebook on design patterns and principles. It's available in PDF/ePUB/MOBI formats and includes the archive with code examples in Java, C#, C++, PHP, Python, Ruby, Go, Swift, …

  3. Design Patterns in Java

    Mediator Lets you reduce chaotic dependencies between objects. The pattern restricts direct communications between the objects and forces them to collaborate only via a mediator object.

  4. Singleton in Java / Design Patterns

    Full code example in Java with detailed comments and explanation. Singleton is a creational design pattern, which ensures that only one object of its kind exists and provides a single point …

  5. Builder in Java / Design Patterns - refactoring.guru

    Full code example in Java with detailed comments and explanation. Builder is a creational design pattern, which allows constructing complex objects step by step.

  6. Strategy in Java / Design Patterns

    Full code example in Java with detailed comments and explanation. Strategy is a behavioral design pattern that turns a set of behaviors into objects and makes them interchangeable …

  7. Adapter in C++ / Design Patterns - refactoring.guru

    Adapter pattern in C++. Full code example in C++ with detailed comments and explanation. Adapter is a structural design pattern, which allows incompatible objects to collaborate.

  8. Abstract Factory in C++ / Design Patterns - refactoring.guru

    Full code example in C++ with detailed comments and explanation. Abstract Factory is a creational design pattern, which solves the problem of creating entire product families without …

  9. Chain of Responsibility in Java / Design Patterns

    This example shows how a request containing user data passes a sequential chain of handlers that perform various things such as authentication, authorization, and validation.

  10. Prototype in C++ / Design Patterns

    Full code example in C++ with detailed comments and explanation. Prototype is a creational design pattern that allows cloning objects, even complex ones, without coupling to their …