Mô tả

Course Overview

This course provides a comprehensive overview of Design Patterns in JavaScript from a practical perspective. This course in particular covers patterns with the use of:

  • The latest versions of the JavaScript programming language

  • Use of modern programming libraries and frameworks

  • Use of modern developer tools such as JetBrains WebStorm

  • Discussions of pattern variations and alternative approaches

This course provides an overview of all the Gang of Four (GoF) design patterns as outlined in their seminal book, together with modern-day variations, adjustments, discussions of intrinsic use of patterns in the language.

What are Design Patterns?

Design Patterns are reusable solutions to common programming problems. They were popularized with the 1994 book Design Patterns: Elements of Reusable Object-Oriented Software by Erich Gamma, John Vlissides, Ralph Johnson and Richard Helm (who are commonly known as a Gang of Four, hence the GoF acronym).

The original book GoF book used C++ and Smalltalk for its examples, but, since then, design patterns have been adapted to every programming language imaginable: C#, Java, Swift, Python and now — JavaScript!

The appeal of design patterns is immortal: we see them in libraries, some of them are intrinsic in programming languages, and you probably use them on a daily basis even if you don't realize they are there.

What Patterns Does This Course Cover?

This course covers all the GoF design patterns. In fact, here's the full list of what is covered:

  • SOLID Design Principles: Single Responsibility Principle, Open-Closed Principle, Liskov Substitution Principle, Interface Segregation Principle and Dependency Inversion Principle

  • Creational Design Patterns: Builder, Factories (Factory Method and Abstract Factory), Prototype and Singleton

  • Structrural Design Patterns: Adapter, Bridge, Composite, Decorator, Façade, Flyweight and Proxy

  • Behavioral Design Patterns: Chain of Responsibility, Command, Interpreter, Iterator, Mediator, Memento, Observer, State, Strategy, Template Method and Visitor

Who Is the Course For?

This course is for JavaScript developers who want to see not just textbook examples of design patterns, but also the different variations and tricks that can be applied to implement design patterns in a modern way. For example, the use of Symbol.iterator allows objects (including iterator objects) to be iterable and lets scalar objects masquerade as if they were collections.

Presentation Style

This course is presented as a (very large) series of live demonstrations being done in JetBrains WebStorm and presented using the Kinetica rendering engine. Kinetica removes the visual clutter of the IDE, making you focus on code, which is rendered perfectly, whether you are watching the course on a big screen or a mobile phone. 

Most demos are single-file, so you can download the file attached to the lesson and run it in WebStorm, Atom or another IDE of your choice (or just run them from the command-line).

This course does not use UML class diagrams; all of demos are done via live coding.

Bạn sẽ học được gì

Recognize and apply design patterns

Refactor existing designs to use design patterns

Reason about applicability and usability of design patterns

Yêu cầu

  • Good understanding of JavaScript
  • Familiarity with latest JavaScript language features
  • Good understanding of object-oriented design principles
  • A computer with latest JS and NodeJS versions and (hopefully) an IDE

Nội dung khoá học

25 sections

Introduction to Object-Oriented JavaScript

2 lectures
Introduction
06:17
Tools of the Trade
03:18

SOLID Design Principles

7 lectures
Overview
00:52
Single Responsibility Principle
09:10
Open-Closed Principle
17:46
Liskov Substitution Principle
10:15
Interface Segregation Principle
11:17
Dependency Inversion Principle
15:22
Summary
02:26

Builder

6 lectures
Gamma Categorization
03:36
Overview
01:20
Builder
16:47
Builder Facets
12:52
Builder Coding Exercise
1 question
Summary
01:01

Factory

6 lectures
Overview
02:43
Factory Method
09:42
Factory
04:44
Abstract Factory
16:08
Factory Coding Exercise
1 question
Summary
01:03

Prototype

6 lectures
Overview
01:54
Explicit Copying
07:39
Copy Through Serialization
13:39
Prototype Factory
07:21
Prototype Coding Exercise
1 question
Summary
00:44

Singleton

6 lectures
Overview
03:31
Singleton Implementation
05:48
Monostate
05:01
Singleton Problems
15:07
Singleton Coding Exercise
1 question
Summary
02:10

Adapter

5 lectures
Overview
01:12
Adapter
11:02
Adapter Caching
07:12
Adapter Coding Exercise
1 question
Summary
00:56

Bridge

4 lectures
Overview
04:19
Bridge
09:12
Bridge Coding Exercise
1 question
Summary
01:36

Composite

5 lectures
Overview
02:27
Geometric Shapes
08:26
Neural Networks
11:06
Composite Coding Exercise
1 question
Summary
01:51

Decorator

4 lectures
Overview
02:35
Decorator
10:37
Decorator Coding Exercise
1 question
Summary
01:08

Façade

4 lectures
Overview
01:47
Façade
09:45
Façade Coding Exercise
1 question
Summary
00:42

Flyweight

5 lectures
Overview
02:16
Text Formatting
10:54
User Names
11:57
Flyweight Coding Exercise
1 question
Summary
00:40

Proxy

7 lectures
Overview
01:29
Value Proxy
03:32
Property Proxy
05:06
Protection Proxy
03:51
Virtual Proxy
04:43
Proxy Coding Exercise
1 question
Summary
00:38

Chain of Responsibility

6 lectures
Overview
02:16
Method Chain
10:50
Command Query Separation
01:28
Broker Chain
15:53
Chain of Responsibility Coding Exercise
1 question
Summary
01:53

Command

5 lectures
Overview
03:01
Command
06:25
Command Undo
04:19
Command Coding Exercise
1 question
Summary
00:38

Interpreter

5 lectures
Overview
02:24
Lexing
09:00
Parsing
12:19
Interpreter Coding Exercise
1 question
Summary
00:31

Iterator

6 lectures
Overview
03:03
Array Backed Properties
09:26
Iterator
09:46
Tree Traversal
14:30
Iterator Coding Exercise
1 question
Summary
01:04

Mediator

5 lectures
Overview
01:13
Chat Room
10:31
Mediator with Events
07:00
Mediator Coding Exercise
1 question
Summary
01:28

Memento

5 lectures
Overview
01:17
Memento
05:50
Undo and Redo
09:17
Memento Coding Exercise
1 question
Summary
00:33

Observer

6 lectures
Overview
01:58
Events
11:45
Property Observers
11:54
Property Dependencies
07:14
Observer Coding Exercise
1 question
Summary
01:00

State

5 lectures
Overview
01:27
Classic State
08:09
Handmade State Machine
12:31
State Coding Exercise
1 question
Summary
00:54

Strategy

4 lectures
Overview
01:58
Strategy
10:21
Strategy Coding Exercise
1 question
Summary
00:53

Template Method

4 lectures
Overview
01:56
Template Method
08:10
Template Method Coding Exercise
1 question
Summary
00:28

Visitor

6 lectures
Overview
03:04
Intrusive Visitor
06:29
Reflective Visitor
05:09
Classic Visitor
09:27
Visitor Coding Exercise
1 question
Summary
01:41

Course Summary

1 lectures
Course Summary
10:15

Đánh giá của học viên

Chưa có đánh giá
Course Rating
5
0%
4
0%
3
0%
2
0%
1
0%

Bình luận khách hàng

Viết Bình Luận

Bạn đánh giá khoá học này thế nào?

image

Đăng ký get khoá học Udemy - Unica - Gitiho giá chỉ 50k!

Get khoá học giá rẻ ngay trước khi bị fix.