|
所在平台: Udemy |
课程主页: https://www.udemy.com/course/structural_cpp/
课程评论:没有评论
课程名称:现代 C++ 中的结构设计模式 课程概述:设计模式是一种解决常见面向对象设计问题的方法。但理解和学习设计模式并不容易,需要时间。观察一个模式就像是在看一个没有问题的解决方案,除非您之前遇到过该问题。本课程旨在帮助您理解并实现结构性设计模式。每种模式都有多个示例讲解,并通过现代 C++ 进行实现,这有助于您了解如何有效利用语言特性实施这些模式。我将提供用现代 C++ 编写的真实世界示例,这些示例将在任何支持 C++ 编译器的平台上编译并执行。 课程内容包括: - 通过 UML 类图解释模式的意图和结构。 - 讲述模式的基本实现细节。 - 实现简单示例以熟悉模式的整体框架。 - 引入另一个示例,该示例存在模式旨在解决的设计问题。 - 考察问题并逐步通过应用设计模式重构代码。 - 解释替代场景和示例,并指出它们之间的差异,学习如何在不同选项之间做出决策。 - 讨论模式在 C++ 上下文中的应用及如何为性能、可重用性和最大灵活性进行调整。 - 最后,您将学会何时使用该模式及其优缺点。这一部分将进行深入讨论,涵盖多个讲座。 通过本课程的学习,您将深入理解结构设计模式,并能够在自己的代码中灵活应用,或轻松应对任何设计方面的面试。
Design Patterns are a way to solve common object oriented design problems. But understanding and learning design patterns is hard and takes time. Looking at a pattern is like looking at a solution without a problem, unless you've encountered the problem in the past.This course aims to help you understand & implement Structural Design Patterns. Each pattern is explained with multiple examples and through modern C++. This helps you understand how the pattern can be implemented efficiently using language features. I provide real-world examples written in Modern C++. These examples will compile & execute on any platform that supports a C++ compiler.This is how the course teaches structural patterns.The intent, structure of the pattern is explained through UML class diagram.Basic implementation details of the pattern are explained.The pattern is implemented in a simple example.You get familiar with the overall implementation of the pattern.Another example is introduced that has design issues the pattern aims to resolve.We examine the issues and refactor the code by applying the design pattern step by step.Alternative scenarios & examples are explained along with differences between them. You also learn how to decide between different alternatives.I discuss the pattern in context of C++ and how to tweak it for performance, reusability & maximum flexibility.Finally, you'll learn when to use the pattern and its pros & cons.This is an intensive discussion that spans multiple lectures. At the end of each section, you'll understand the pattern in depth and can apply it in your code or easily clear any design interview.