SlideShare a Scribd company logo
DESIGN PATTERNS
How to make your life as a coder easier
Sergio Brito
@yacaFx
Design patterns for TypeScript and other languages
Design patterns for TypeScript and other languages
object-oriented design
Typical solution for
common problems in software design
Easy to identify
Blueprints
that you can customize
It is not
A library A specific piece of code
Is
General concept for
solving a particular problem
Algorithm vs Patterns
Algorithm
Defines a clear sets of actions that can achieve some goal
Pattern
High level description of a solution
Both have clear steps to achieve a goal.
STRUCTURE
• Intent
• Motivation
• Structure
• Code example
STORY
STORY
IMPORTANCE
• Probable you sometime will use it or not
• You can apply the patterns on any programming language
• Are a toolkit of tried and tested solutions to common
problems in software design
• Define a common language to communicate more
efficiently
HATTERS
GONNA HATE
• Exist many arguments against to patterns
• Kludge for a weak programming language
• Inefficient solutions
• Unjustified use
Low-level & High-level
Classification of patterns
Intent or Purpose
e.g. Interfaces, enum
Idioms
Low-level
Architectural patterns
High-level
“THOSE WHO ARE
UNAWARE
THEY ARE WALKING IN
DARKNESS
WILL NEVER SEEK
THE LIGHT.”
BRUCE LEE
Creational patterns
Provide object creation
mechanisms
that increase flexibility and reuse
of existing
Creational patterns
Creational patterns
Structural patterns
Explain how to assemble objects and classes into larger structures,
while keeping the structures flexible and efficient.
Structural patterns
Structural patterns
Behavioral patterns
Take care of effective
communication and
the assignment of
responsibilities
between objects.
Behavioral patterns
Behavioral patterns
Behavioral patterns
Samples
https://refactoring.guru/design-patterns/examples
😱😱😱
Now you can see that all this time you already are
using design patterns without noticing
Q&A
Thank u!
Sergio Brito
@yacaFx
sergiobritor@gmail.com

More Related Content

PPTX
sitHH - No comment?
PPSX
sitVIE - No comment?
PPSX
SitFRA - No Comment?
PPTX
Coding Introductory Lesson Upper Elementary
PPTX
From Concrete to Abstract: Motivating Contexts for Novice Programmers
PPTX
A Pragmatic Approach
PDF
How to code in the XXI century without losing your head
PPTX
Career Analysis and Strategy
sitHH - No comment?
sitVIE - No comment?
SitFRA - No Comment?
Coding Introductory Lesson Upper Elementary
From Concrete to Abstract: Motivating Contexts for Novice Programmers
A Pragmatic Approach
How to code in the XXI century without losing your head
Career Analysis and Strategy

What's hot (7)

PDF
Ajp preso 4
PPTX
Graphical User Interface
PDF
8 Programming Concepts You Should Know
PDF
Software Design Notes
ODP
8 Programming Concepts You Should Know
PDF
Pair programming
PPTX
So you want to be a programmer
Ajp preso 4
Graphical User Interface
8 Programming Concepts You Should Know
Software Design Notes
8 Programming Concepts You Should Know
Pair programming
So you want to be a programmer
Ad

Similar to Design patterns for TypeScript and other languages (20)

PPTX
Python: Design Patterns
PPTX
PPSX
Design patterns
PDF
Top_down_programming..............................
PDF
Designing patterns in java Advantages and disadvantagesSolution.pdf
PPTX
Designpattern
PPTX
Basics of Programming.pptx
PDF
JUG CH December 2022 - Generic or specific?
PPSX
Clean code
PDF
Module 2 design patterns-2
PPTX
Design patterns
PPTX
metaphors for a richer understanding of software
PDF
Hidden sides of Code Review (MMM-2023)
PPTX
Design Patterns- Course for students .pptx
PDF
Generic or Specific? Making sensible software design decisions
PPTX
Software construction and development Lec 4.pptx
PDF
Generic or specific? Making sensible software design decisions
PDF
The 360 Developer
PDF
Code Inspection
PPTX
Code smells and Other Malodorous Software Odors
Python: Design Patterns
Design patterns
Top_down_programming..............................
Designing patterns in java Advantages and disadvantagesSolution.pdf
Designpattern
Basics of Programming.pptx
JUG CH December 2022 - Generic or specific?
Clean code
Module 2 design patterns-2
Design patterns
metaphors for a richer understanding of software
Hidden sides of Code Review (MMM-2023)
Design Patterns- Course for students .pptx
Generic or Specific? Making sensible software design decisions
Software construction and development Lec 4.pptx
Generic or specific? Making sensible software design decisions
The 360 Developer
Code Inspection
Code smells and Other Malodorous Software Odors
Ad

More from Sergio Brito (13)

PDF
NgRx 101 Connect.Tech 2019
PDF
Gestión de proyectos web y móviles
PDF
Entrevista a un programador JavaScript
PDF
Conociendo Angular 2
PDF
Hola Swift !
PDF
Welcome to the RIAworld
PPTX
Games, Develop & Html5 for BlackBerry PlayBook
PDF
Improve your Flash-based RIA with VoIP
PPTX
High performance ria teams
PPTX
Flash 2 dev bbp-laybook
PPTX
Desarrollo para android con Flex / AIR
PDF
Administración de Proyectos Flash en el Flat
PDF
Dale Stamina A Tu Flex App Con Amfphp
NgRx 101 Connect.Tech 2019
Gestión de proyectos web y móviles
Entrevista a un programador JavaScript
Conociendo Angular 2
Hola Swift !
Welcome to the RIAworld
Games, Develop & Html5 for BlackBerry PlayBook
Improve your Flash-based RIA with VoIP
High performance ria teams
Flash 2 dev bbp-laybook
Desarrollo para android con Flex / AIR
Administración de Proyectos Flash en el Flat
Dale Stamina A Tu Flex App Con Amfphp

Recently uploaded (20)

PDF
Navsoft: AI-Powered Business Solutions & Custom Software Development
PDF
Upgrade and Innovation Strategies for SAP ERP Customers
PDF
Nekopoi APK 2025 free lastest update
PDF
Softaken Excel to vCard Converter Software.pdf
PDF
Digital Strategies for Manufacturing Companies
PDF
How to Choose the Right IT Partner for Your Business in Malaysia
PDF
System and Network Administration Chapter 2
PDF
Addressing The Cult of Project Management Tools-Why Disconnected Work is Hold...
PPTX
Introduction to Artificial Intelligence
PDF
PTS Company Brochure 2025 (1).pdf.......
PDF
EN-Survey-Report-SAP-LeanIX-EA-Insights-2025.pdf
PDF
Which alternative to Crystal Reports is best for small or large businesses.pdf
PPTX
Computer Software and OS of computer science of grade 11.pptx
PDF
Raksha Bandhan Grocery Pricing Trends in India 2025.pdf
PDF
SAP S4 Hana Brochure 3 (PTS SYSTEMS AND SOLUTIONS)
PPTX
Agentic AI Use Case- Contract Lifecycle Management (CLM).pptx
PDF
top salesforce developer skills in 2025.pdf
PDF
Understanding Forklifts - TECH EHS Solution
PDF
How to Migrate SBCGlobal Email to Yahoo Easily
PPTX
Oracle E-Business Suite: A Comprehensive Guide for Modern Enterprises
Navsoft: AI-Powered Business Solutions & Custom Software Development
Upgrade and Innovation Strategies for SAP ERP Customers
Nekopoi APK 2025 free lastest update
Softaken Excel to vCard Converter Software.pdf
Digital Strategies for Manufacturing Companies
How to Choose the Right IT Partner for Your Business in Malaysia
System and Network Administration Chapter 2
Addressing The Cult of Project Management Tools-Why Disconnected Work is Hold...
Introduction to Artificial Intelligence
PTS Company Brochure 2025 (1).pdf.......
EN-Survey-Report-SAP-LeanIX-EA-Insights-2025.pdf
Which alternative to Crystal Reports is best for small or large businesses.pdf
Computer Software and OS of computer science of grade 11.pptx
Raksha Bandhan Grocery Pricing Trends in India 2025.pdf
SAP S4 Hana Brochure 3 (PTS SYSTEMS AND SOLUTIONS)
Agentic AI Use Case- Contract Lifecycle Management (CLM).pptx
top salesforce developer skills in 2025.pdf
Understanding Forklifts - TECH EHS Solution
How to Migrate SBCGlobal Email to Yahoo Easily
Oracle E-Business Suite: A Comprehensive Guide for Modern Enterprises

Design patterns for TypeScript and other languages