Giter VIP home page Giter VIP logo

design-patterns's Introduction

Notable Mentions

I would like to acknowledge the following books that have greatly influenced my understanding of design patterns and software development:

  • Mastering Design Patterns by Ta Van Dung (Book Repo, tvd12) (In Vietnamse only)
  • Design Patterns: Elements of Reusable Object-Oriented Software by Erich Gamma, Richard Helm, Ralph Johnson, and John Vlissides (Gang of Four)
  • Dive Into Design Patterns by Alexander Shvets (refactoring.guru)
  • Clean Code: A Handbook of Agile Software Craftsmanship by Robert C. Martin

UML Class Diagram Cheatsheet

Class
-privateMember: int
#protectedMember: char
+publicMember: bool
──────────────────────────
+publicMethod(): void
+publicVirtualMethod(parameter: int): void
-privateMethod(): bool
#protectedMethod(value: int): char

Generalization

|       Child Class      |      is a      |      Parent Class      |
|       -kid: bool       |  ───────────▷  | +virtualMethod(): void |
| +virtualMethod(): void |

Realization

|         Class          |   Implements   |        Interface       |
|       -kid: bool       |  - - - - - -| +virtualMethod(): void |
| +virtualMethod(): void |

Association

          1..*             1
| Class 1 |  ───────────▶  | Class 2 |

Dependency

               <<uses>>
| Class 1 |  - - - - - ->  | Class 2 |

Aggregation

          1    <<has a>>   1..*
| Class 1 |  ◇───────────  | Class 2 |

Composition

          1   <<owns a>>   1..*
| Class 1 |  ◆───────────  | Class 2 |

design-patterns's People

Contributors

boushphong avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

tuannguyen2807

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.