Skip to content

grand-rick/design-patterns

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Design Patterns 101

This repository contains examples of design patterns in Typescript.

OO basics

  • Abstraction
  • Encapsulation
  • Polymorphism
  • Inheritance

OO Principles

  1. Encapsulate what varies
  2. Favor composition over inheritance
  3. Program to an interface, not an implementation
  4. Strive for loosely coupled designs between objects that interact
  5. Classes should be open for extension but closed for modification

Design Patterns

  1. Strategy Pattern Strategy Pattern Image
  2. Observer Pattern Observer Pattern Image
  3. Decorator Pattern Decorator Pattern Image

About

Learn about the fundamentals of design patterns

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published