# Classification

#### Classic Design Patterns:

The 23 Gang of Four (GoF) patterns ( defined by **four** authors – Erich Gamma, Richard Helm, Ralph Johnson and John Vlissides) are generally considered the foundation for all other patterns. They are categorized in three groups:

1. Creational design patterns
2. Structural design patterns
3. Behavioral design patterns

#### Other Design Patterns:

1. Concurrency design patterns
2. Architectural design patterns

Each of the design pattern represents a specific type of solution for specific type of problem. There is no universal set of patterns that always the best fit. We need to learn when the the particular pattern will provide solution to the problem.

**Note:**

Applying wrong pattern to a given problem leads to code complexity , performance issues and also lead to anti-pattern.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://javascript-1.gitbook.io/design-pattern/classification.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
