About 600 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. Structural Design Patterns - refactoring.guru

    Structural design patterns explain how to assemble objects and classes into larger structures, while keeping these structures flexible and efficient.

  5. Factory Method in C# / Design Patterns - refactoring.guru

    Full code example in C# with detailed comments and explanation. Factory method is a creational design pattern which solves the problem of creating product objects without specifying their …

  6. Builder in C++ / Design Patterns - refactoring.guru

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

  7. Factory Method in Python / Design Patterns

    Full code example in Python with detailed comments and explanation. Factory method is a creational design pattern which solves the problem of creating product objects without …

  8. 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 …

  9. 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 …

  10. Abstract Factory - refactoring.guru

    This example illustrates how the Abstract Factory pattern can be used for creating cross-platform UI elements without coupling the client code to concrete UI classes, while keeping all created …