All Projects → RefactoringGuru → Design Patterns Typescript

RefactoringGuru / Design Patterns Typescript

Licence: other
Design Pattern Examples in TypeScript

Programming Languages

typescript
32286 projects

Projects that are alternatives of or similar to Design Patterns Typescript

Unity Design Pattern
🍵 All Gang of Four Design Patterns written in Unity C# with many examples. And some Game Programming Patterns written in Unity C#. | 各种设计模式的Unity3D C#版本实现
Stars: ✭ 2,600 (+1076.47%)
Mutual labels:  design-patterns
Learningsummary
涵盖大部分Java进阶需要掌握的知识,包括【微服务】【中间件】【缓存】【数据库优化】【搜索引擎】【分布式】等等,欢迎Star~
Stars: ✭ 201 (-9.05%)
Mutual labels:  design-patterns
Javascript Interview Questions
500+ JavaScript Interview Questions
Stars: ✭ 208 (-5.88%)
Mutual labels:  design-patterns
Baldphone
A new accessible interface for your smartphone, suitable for seniors
Stars: ✭ 181 (-18.1%)
Mutual labels:  design-patterns
Design Patterns In Swift
📖 Design Patterns implemented in Swift 5.0
Stars: ✭ 13,146 (+5848.42%)
Mutual labels:  design-patterns
Reactpatterns
React patterns & techniques to use in development for React Developer ⚛ .
Stars: ✭ 201 (-9.05%)
Mutual labels:  design-patterns
Jwave
A Discrete Fourier Transform (DFT), a Fast Wavelet Transform (FWT), and a Wavelet Packet Transform (WPT) algorithm in 1-D, 2-D, and 3-D using normalized orthogonal (orthonormal) Haar, Coiflet, Daubechie, Legendre and normalized biorthognal wavelets in Java.
Stars: ✭ 174 (-21.27%)
Mutual labels:  design-patterns
Material Backdrop
A simple solution for implementing Backdrop pattern for Android
Stars: ✭ 221 (+0%)
Mutual labels:  design-patterns
Wdb106 Flutter
WEB+DB PRESS Vol.106のAndroid・iOSアプリ設計のサンプルをFlutterではどう書くかというサンプル https://www.amazon.co.jp/dp/4774199435?tag=mono0926-22
Stars: ✭ 188 (-14.93%)
Mutual labels:  design-patterns
Design Patterns Csharp
Design Pattern Examples in C#
Stars: ✭ 213 (-3.62%)
Mutual labels:  design-patterns
Golang Design Patterns
Implementation of design patterns in Golang
Stars: ✭ 181 (-18.1%)
Mutual labels:  design-patterns
Unitysingleton
The best way to implement singleton pattern in Unity.
Stars: ✭ 185 (-16.29%)
Mutual labels:  design-patterns
Learning Oop In Php
A collection of resources to learn object-oriented programming and related concepts for PHP developers.
Stars: ✭ 2,359 (+967.42%)
Mutual labels:  design-patterns
Design Patterns And Idioms In Es6
Design patterns and idioms in JS(ES6) /w traceur
Stars: ✭ 179 (-19%)
Mutual labels:  design-patterns
Designpattern.samples.csharp
23种面向对象设计模式示例代码(C#实现)
Stars: ✭ 215 (-2.71%)
Mutual labels:  design-patterns
Algorithms Data Structures In Typescript
Stars: ✭ 175 (-20.81%)
Mutual labels:  design-patterns
Archit Ios
Intelygenz iOS Architecture
Stars: ✭ 203 (-8.14%)
Mutual labels:  design-patterns
Awesome Design Systems
A curated list of bookmarks, resources and articles about design systems focused on developers.
Stars: ✭ 222 (+0.45%)
Mutual labels:  design-patterns
Dpmodel
《设计模式之禅》原书源码学习
Stars: ✭ 220 (-0.45%)
Mutual labels:  design-patterns
Dntframeworkcore
Lightweight and Extensible Infrastructure for Building Web Applications - Web Application Framework
Stars: ✭ 208 (-5.88%)
Mutual labels:  design-patterns

Design Patterns in TypeScript

This repository is part of the Refactoring.Guru project.

It contains TypeScript examples for all classic GoF design patterns. Each pattern includes two examples:

  • [x] Conceptual examples show the internal structure of patterns, including detailed comments.

  • [ ] RealWorld examples show how patterns can be used in real-world web applications.

Requirements

For simplicity reasons, the examples are console apps. In order to launch them, you have to install Node.js and NPM on your computer and then install TypeScript compiler and TypeScript Node extension like this:

npm install -g typescript
npm install -g ts-node

When you have all the required software installed, the examples can be launched via the command line as follows:

ts-node src/Path-to-example/Example.ts

For the best experience, I recommend working with examples with these IDEs:

Contributor's Guide

I appreciate any help, whether it's a simple fix of a typo or a whole new example. Just make a fork, make your change and submit a pull request.

Here's a style guide which might help you to keep your changes consistent with the rest of the project's code:

  1. All code should follow these two guidelines: Unofficial TypeScript StyleGuide and Airbnb JavaScript Style Guide.

  2. Try to hard wrap the code at 80th's character. It helps to list the code on the website without scrollbars.

  3. Example files should be located and named in the following manner:

    src/{PatternName}/{ExampleName}/index.ts
    
  4. Aim to put all code within one file. Yes, I realize that it's not how it supposed to be done in production. But it helps people to better understand examples, since all code fits into one screen.

  5. Comments may or may not have language tags in them, such as this:

    /**
     * EN: All products families have the same varieties (MacOS/Windows).
     *
     * This is a MacOS variant of a button.
     *
     * RU: Все семейства продуктов имеют одни и те же вариации (MacOS/Windows).
     *
     * Это вариант кнопки под MacOS.
     */
    

    This notation helps to keep the code in one place while allowing the website to generates separate versions of examples for all listed languages. Don't be scared and ignore the non-English part of such comments. If you want to change something in a comment like this, just do it. Even if you do it wrong, we'll tell you how to fix it during the Pull Request.

License

This work is licensed under a Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International License.

Creative Commons License

Credits

Authors: Alexey Pyltsyn (@lex111) and Alexander Shvets (@neochief)

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].