GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - pncsoares/javascript-design-patterns: Design patterns in JavaScript and TypeScript

BranchesTags
Open more actions menu

Latest commit

 

History

11 Commits
11 Commits

Folders and files

NameName
Last commit message
Last commit date
BuilderPattern
BuilderPattern
 
 
CommandPattern
CommandPattern
 
 
FacadePattern
FacadePattern
 
 
NullObjectPattern
NullObjectPattern
 
 
SingletonPattern
SingletonPattern
 
 
.gitignore
.gitignore
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 

Repository files navigation

Design Patterns

Design patterns written in JavaScript and TypeScript.

Definition

A software design pattern is a general, reusable solution to a commonly occurring problem within a given context in software design. Design patterns are formalized best practices that the programmer can use to solve common problems when designing an application or system.

👆 Source

In my opinion, this defines very well what a design pattern is.

Advantages of using them

  • Promote easier changes
  • Turns the objects reusable
  • Keeps objects small and specialized

Types

  • Creational patterns
  • Structural patterns
  • Behavioral patterns
  • Concurrency patterns

Code examples

Type Name Information
Creational patterns Builder Go to detail 📄
Creational patterns Singleton Go to detail 📄
Structural patterns Facade Go to detail 📄
Behavioral patterns Command Go to detail 📄
Behavioral patterns Null Object Go to detail 📄

Another design patterns that I will add in the future:

  • Factory
  • Observer
  • Decorator
  • Strategy
  • Adapter
  • Iterator
  • Proxy
  • Composite
  • Bridge

Setup

Clone repository

Create and go to the directory where you want to place the repository

  cd my-directory

Clone the project

  git clone https://github.com/pncsoares/javascript-design-patterns.git

Go to the project directory

  cd javascript-design-patterns

License

MIT

About

Design patterns in JavaScript and TypeScript

Topics

architecturebuilder-patterncommand-patterndesign-patternsfacade-patternnull-object-patternsingleton-pattern

Resources

Readme
MIT license
Activity

Stars

1 star

Watchers

1 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.