Design Patterns in TypeScript

Write cleaner code and enhance your development skills with TypeScript design patterns

4.10 (192 reviews)
Udemy
platform
English
language
Programming Languages
category
1,215
students
5 hours
content
Sep 2018
last update
$49.99
regular price

What you will learn

Identify and avoid violations of the SOLID Principles

Create single instances of classes throughout your apps with the Singleton pattern

Use factories to get instances and object pools

Understand Dependency Injection and work with its benefits

Use InversifyJS and learn about dependency scope

Extend objects with the Decorator pattern

Convert interfaces using the Adapter and Facade patterns

Choose implementations on runtime using the Strategy pattern

Use the Observer pattern to notify your app's components about changes

Store application state using the State pattern

Description

In programming, there are several problems that occur frequently. To solve these problems, there are various repeatable solutions; these are known as design patterns. Design patterns are a great way to improve the efficiency of your programs and improve your productivity; you'll learn them all in this course. This course is a collection of the most important patterns you need to improve application performance and productivity.

This course starts by exploring SOLID principles to write clean code. Then you will create new objects and instance of classes with creational design Patterns. Next, you will utilize dependency injection with InversifyJS to create testable, maintainable, and extensible code.

Moving on, you will explore structural design patterns to better express the relationships between different application entities. Lastly, you will investigate behavioral patterns to add flow to your applications and add levels of communication between your entities.

About the Author

Dimitris Loukas is a software engineer currently working with Angular, Node .js, and Docker for a referral marketing startup. He is also developing trading software applications using C# and Aurelia. He has worked for two startups in the past, is active in the open source community, and loves taking up small side-projects. He has developed microservices using C# and Node .js and has also mastered Angular, Aurelia, and Vue .js.. He was an early adopter of .NET Core and is fascinated by modern JavaScript and where the web is going.

Content

SOLID Principles

The Course Overview
Introduction to SOLID
The Single Responsibility Principle
The Open/Closed Principle
The Liskov Substitution Principle
The Interface Segregation Principle
The Dependency Inversion Principle

Creational Design Patterns

Introduction to Design Patterns
The Singleton Pattern
The Factory Pattern
Loose Coupling
The Object Pool

Dependency Injection

Introduction to Dependency Injection
Creating a Custom Container
Introduction to Decorators
Adding Decorators to Our Container
Introducing InversifyJS

Structural Design Patterns

The Decorator Pattern
The Adapter Pattern – Part 1
The Adapter Pattern – Part 2
The Facade Pattern
The Composite Pattern

Behavioral Patterns

The Strategy Pattern
The Observer Pattern
The Command Pattern
The Template Method
The State Pattern

Screenshots

Design Patterns in TypeScript - Screenshot_01Design Patterns in TypeScript - Screenshot_02Design Patterns in TypeScript - Screenshot_03Design Patterns in TypeScript - Screenshot_04

Reviews

Pooja
October 6, 2023
The structuring of the course is good and helpful in learning however some concepts could be explained in more detail with more examples of how they could be applicable
Mohit
July 16, 2023
No proper explanation of the code, on what he wants to achieve beforehand. Very confusing, I have done many intermediate-level courses but this is so far the worst.
John
May 7, 2023
Lots of bugs, no code downloads to compare to, really rushed explanations and minimal implementation. He used `any` all over the place which is a super big no no for TypeScript. Adequate intro to design patterns course, but overall not that good. Would recommend picking up a book instead.
Achraf
June 26, 2022
It is good overall, I feel like some sections are a bit rushed like the decorators, but overall its been great !
David
June 21, 2022
It's pretty good design pattern course for beginner with prior knowledge in typescript and oop. To further improve this course, I think it will be better to thoroughly explain about the pattern, what you're trying to do in the example, and its diagram. After you demonstrate the example, it's also better to do a recap to emphasize the usage of the pattern in the example.
Marlon
January 28, 2022
Really good course! I've never heard about SOLID Principles, but I'm understanding them very well. The examples are clear, useful and practical.
Gregory
April 17, 2021
The course provides a review of OOP design patterns for TypeScript programmers. It covers the material at an intermediate level as described and is worthwhile. However, be aware that the instructor does a poor job of explaining concepts and providing context, often falling into the trap of "Type the code I just typed. Now you understand, right?" Good demonstration, poor teaching. The materials include only finished examples which I used as reference but I found it more useful to code them myself in parallel with the video. The resources include no diagrams or illustrations of the patterns themselves. When a diagram is show, such as for the Composite pattern, it is laughably inadequate as an example. Finally, the videos are poorly-rehearsed. The instructor often doubles back on himself to write methods he forgot, or fix runtime errors, etc. These should have been caught ahead of time when preparing and rehearsing the lesson. As a result, things occasionally feel a bit haphazard or disorganized. Again, a worthwhile overview of the concepts at hand, but average execution from an instruction point of view.
Joe
February 23, 2021
Really fantastic course for those looking to get an overview of design patterns in Typescript, or in general. It's very clear and helpful and focused.
Bhavesh
December 4, 2020
Needs a bit of update, its ok to understand the principles but it needs improvement. There is also no support from the teacher
Pascal
July 8, 2020
While informative, this lectures course leader makes some major mistakes in his code. Never return Promise<any> unless there is no other option. Also in the "Adding Decorators to Our Container" the decorated methods are not even called after they were decorated and the one method, which really had some deps wasn't even decorated..
Julia
February 24, 2020
The language is pretty CS heavy when describing what's going on. If I was that fluent in CS terminology I wouldn't have to take this course hahahaha! Overall pretty good.
Ckruszynsky
March 24, 2019
very generic and poor examples. The author speeds through the content and runs quickly through topics. Mentions topics and then never discusses topic. Not put together well at all.

Charts

Price

Design Patterns in TypeScript - Price chart

Rating

Design Patterns in TypeScript - Ratings chart

Enrollment distribution

Design Patterns in TypeScript - Distribution chart

Related Topics

1897768
udemy ID
9/6/2018
course created date
8/2/2019
course indexed date
Bot
course submited by