Skip to content

Alias names for patterns #267

Closed
Closed

Description

@iluwatar

Many design patterns have multiple names. For example Decorator is also known as Wrapper.

We should supplement the pattern template with Also known as where applicable.

Activity

  1. npathai commented on Oct 19, 2015

    @npathai
    Contributor

    👍 Good idea.

  2. bernardosulzbach commented on Oct 24, 2015

    @bernardosulzbach
    Contributor

    This is a good idea, but I'd like to point out that the given example may lead to mistakes. Adapters are also sometimes called wrappers, and many wrappers are not decorators nor adapters. I'd say wrappers are broader than these two design patterns. But I've seen both of them referenced by the name wrapper.

  3. iluwatar commented on Oct 25, 2015

    @iluwatar
    OwnerAuthor

    It is a valid point. Maybe this is why Wrapper is the secondary name (source: GOF book).

  4. bernardosulzbach commented on Oct 25, 2015

    @bernardosulzbach
    Contributor

    I agree that it is still called wrapper nowadays (GoF is a bit outdated and should be read with caution). Just pointing out that one may see the Decorator pattern as Wrapper pattern is a great thing, though.

  5. added this to the 1.8.0 milestone on Nov 4, 2015
  6. added a commit that references this issue on Aug 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions