Course Overview
Course Overview
This course provides a comprehensive overview of Design Patterns in Modern C++ from a practical perspective. This course in particular covers patterns with the use of:
- The latest versions of the C++ programming language
- Use of modern programming approaches: dependency injection, use of coroutines, and more!
- Use of modern developer tools such as CLion and ReSharper C++
- 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 was written using C++ and Smalltalk as examples, but since then, design patterns have been adapted to every programming language imaginable: Swift, C#, Java, PHP and even programming languages that aren't strictly object-oriented, such as 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, Null Object, Observer, State, Strategy, Template Method and Visitor
Who Is the Course For?
This course is for C++ 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.
Presentation Style
This course is presented as a (very large) series of live demonstrations being done in JetBrains CLion. Most demos are single-file, so you can download the file attached to the lesson and run it in CLion, XCode or another IDE of your choice (or just on the command line).
This course does not use UML class diagrams; all of demos are live coding.
FAQ
FAQ area empty
Course curriculum
Chương 1 Introduction 1 bài
Chương 2 SOLID Design Principles 7 bài
- Overview Học thử
- Single Responsibility Principle Học thử
-
Open-Closed Principle
- Liskov Substitution Principle Học thử
-
Interface Segregation Principle
- Dependency Inversion Principle Học thử
- Summary Học thử
Chương 3 Builder 9 bài
-
Gamma Categorization
-
Overview
- Life Without Builders Học thử
-
Builder
-
Fluent Builder
-
Groovy-Style Builder
-
Builder Facets
-
Builder Coding Exercise
-
Summary
Chương 4 Factories 9 bài
-
Overview
-
Point Example
-
Factory Method
-
Factory
-
Inner Factory
-
Abstract Factory
-
Functional Factory
-
Factory Coding Exercise
-
Summary
Chương 5 Prototype 7 bài
-
Overview
-
Record Keeping
-
Prototype
-
Prototype Factory
-
Prototype via Serialization
-
Prototype Coding Exercise
-
Summary
Chương 6 Singleton 9 bài
-
Overview
-
Singleton Implementation
-
Testability Issues
-
Singleton in Dependency Injection
-
Singleton Lifetime in DI Container
-
Monostate
-
Multiton
-
Singleton Coding Exercise
-
Summary
Chương 7 Adapter 5 bài
-
Overview
-
Vector/Raster Demo
-
Adapter Caching
-
Adapter Coding Exercise
-
Summary
Chương 8 Bridge 6 bài
-
Overview
-
Pimpl Idiom
-
Shrink-Wrapped Pimpl
-
Bridge Implementation
-
Bridge Coding Exercise
-
Summary
Chương 9 Composite 6 bài
-
Overview
-
Geometric Shapes
-
Neural Networks
-
Array-Backed Properties
-
Composite Coding Exercise
-
Summary
Chương 10 Decorator 6 bài
-
Overview
-
Dynamic Decorator
-
Static Decorator
-
Functional Decorator
-
Decorator Coding Exercise
-
Summary
Chương 11 Façade 3 bài
-
Overview
-
Façade
-
Summary
Chương 12 Flyweight 6 bài
-
Overview
-
Handmade Flyweight
-
Boost.Flyweight
-
Text Formatting
-
Flyweight Coding Exercise
-
Summary
Chương 13 Proxy 8 bài
-
Overview
-
Smart Pointers
-
Property Proxy
-
Virtual Proxy
-
Communication Proxy
-
Proxy vs Decorator
-
Proxy Coding Exercise
-
Summary
Chương 14 Chain of Responsibility 5 bài
-
Overview
-
Pointer Chain
-
Broker Chain
-
Chain of Responsibility Coding Exercise
-
Summary
Chương 15 Command 6 bài
-
Overview
-
Command
-
Undo Operations
-
Composite Command (Macro)
-
Command Coding Exercise
-
Summary
Chương 16 Interpreter 6 bài
-
Overview
-
Handmade Interpreter: Lexing
-
Handmade Interpreter: Parsing
-
Building Parsers with Boost.Spirit
-
Interpreter Coding Exercise
-
Summary
Chương 17 Iterator 7 bài
-
Overview
-
Iterators in the Standard Library
-
Binary Tree Iterator
-
Tree Iterator with Coroutines
-
Boost Iterator Façade
-
Iterator Coding Exercise
-
Summary
Chương 18 Mediator 5 bài
-
Overview
-
Chat Room
-
Event Broker
-
Mediator Coding Exercise
-
Summary
Chương 19 Memento 6 bài
-
Overview
-
Memento
-
Undo and Redo
-
Automatic Memento
-
Memento Coding Exercise
-
Summary
Chương 20 Observer 8 bài
-
Overview
-
Observer
-
Observable
-
Observable with Boost.Signals
-
The Problem of Dependencies
-
Thread Safety and Reentrancy
-
Observer Coding Exercise
-
Summary
Chương 21 State 6 bài
-
Overview
-
Classic State Implementation
-
Handmade State Machine
-
State Machine with Boost.MSM
-
State Coding Exercise
-
Summary
Chương 22 Strategy 5 bài
-
Overview
-
Dynamic Strategy
-
Static Strategy
-
Strategy Coding Exercise
-
Summary
Chương 23 Template Method 4 bài
-
Overview
-
Template Method
-
Template Method Coding Exercise
-
Summary
Chương 24 Visitor 9 bài
-
Overview
-
Intrusive Visitor
-
Reflective Visitor
-
Classic Visitor (Double Dispatch)
-
Acyclic Visitor
-
Multimethods
-
Variant and std::visit
-
Visitor Coding Exercise
-
Summary
Chương 25 Course Summary 1 bài
-
End of Course
Requirment
-
Good understanding of C++
-
Awareness of features of Modern C++ (11/14/17/...)
-
Understanding of OOP (encapsulation, polymorphism, inheritance)
Outcomes
-
Recognize and apply design patterns
-
Refactor existing designs to use design patterns
-
Reason about applicability and usability of design patterns
-
Learn how to use different aspects of Modern C++
Instructor
Nguyễn Đình Cường
1.2
-
1 Student
-
330 Courses
-
1253 reviews
Xin chào các bạn, tôi là Nguyễn Đình Cường, một lập trình viên và giảng viên đam mê công nghệ với hơn 15 năm kinh nghiệm trong ngành công nghiệp phần mềm. Tôi tốt nghiệp từ Bưu Chính Viễn Thông và đã từng làm việc cho một số công ty công nghệ hàng đầu như FPT Software và VinGroup. Với chuyên môn chính là phát triển ứng dụng web, tôi đã làm việc với nhiều công nghệ như HTML, CSS, JavaScript, React cho front-end và Node.js, Express, MongoDB cho back-end. Không chỉ dừng lại ở việc viết mã, tôi còn yêu thích tìm hiểu sâu về thiết kế hệ thống và kiến trúc phần mềm. Tôi tin rằng quá trình học lập trình không chỉ đơn thuần là lý thuyết, mà còn là sự trải nghiệm thực tế và giải quyết vấn đề. Trong các khóa học của mình, tôi cố gắng cung cấp cho học viên những bài giảng thú vị và dễ hiểu, cùng với các bài tập thực hành giúp củng cố kiến thức. Tôi hy vọng rằng qua các khóa học của mình, bạn sẽ không chỉ học được cách viết mã, mà còn phát triển tư duy lập trình và kỹ năng giải quyết vấn đề. Hãy cùng nhau khám phá thế giới lập trình và biến ý tưởng của bạn thành hiện thực! Nếu bạn có bất kỳ câu hỏi nào, đừng ngần ngại liên hệ với tôi. Tôi rất vui được hỗ trợ bạn trong hành trình học tập của mình!
View Details