finds.dev← search

// the find

luizomf/design-patterns-typescript

★ 426 · TypeScript · updated Mar 2022

Nessa seção falamos sobre 22 (de 23) padrões de projeto da GoF. Todos descritos em vídeo, com teoria e prática + exemplos de código.

A Portuguese-language companion repo to a free YouTube series that covers 22 of the 23 GoF design patterns in TypeScript. It is aimed at intermediate developers who read Portuguese and want a worked example for each pattern, grouped under the book's behavioural, creational and structural categories.

Each pattern has its own folder with a README, the UML diagram as an editable .graphml file alongside the .png, and a main.ts that runs the example, so the diagrams can be changed and the code can be run. The examples avoid the usual shapes-and-animals setup: Visitor has separate Brazil and US tax visitors applied to food, cigarettes and alcoholic drinks, Template Method parses the same customer record from both JSON and TXT, and Strategy models swappable discounts in a shopping cart. The folder layout follows the GoF book's categories, so the repo works as a reference index as well as a tutorial.

The last push was 27 March 2022, and nothing in the repo suggests it has been maintained since, so check that the dependencies still install and the TypeScript config still compiles before adopting any of it. The README and every pattern README are in Portuguese with no translation, which shuts out most of the audience the repo would otherwise reach. The README says 22 of 23 but never names the missing pattern; the one absent from the tree is Interpreter, and the repo does not say why it was left out. The READMEs also send readers to the videos for understanding, and a few files sit outside their pattern structure (observer.js and index.html beside observer.ts, module_a.ts and module_b.ts at the singleton root), so it reads more like course material than a maintained project.

View on GitHub → Homepage ↗

// want more like this?

We dig through GitHub every week and send a few repos picked for what you actually care about — each with an honest take like this one.

Get finds in your inbox → Search again →