How to write SOLID C++

所在平台: Udemy

课程主页: https://www.udemy.com/course/how-to-write-solid-cpp/

课程评论:没有评论

第一个写评论        关注课程

课程简介

课程名称:如何编写 SOLID C++ 概述:在本课程中,我们将学习如何根据 SOLID 原则开发 C++ 代码。您是否听说过 SOLID 原则?这些是帮助我们编写可维护和可重用代码的设计原则。如果您熟悉 SOLID,可能已经观看过一些教程。那些教程是否使用“形状”或“动物”类,提供了过于简单化的示例?它们是使用 Java 编写的,或者聚焦于您不感兴趣的领域?本课程则不同。首先,您将深入了解 SOLID 原则的真正含义。没有糖衣包装,没有华丽的设计模式或异域语言特性。其次,本课程基于 C++,使用简单、现代的 C++,并提供您在生产代码库中可能遇到的实际示例。生产代码并不总是完美的,但通常也不会太糟糕。SOLID 原则的违反往往是微妙的,您将学会识别它们。重构并不总是有意义的,但在这门课程结束时,您将能够判断何时重构是合适的。我们将逐步深入每个原则,并将其与知名编程实践和质量属性对应。我们将查看几个实际示例,并讨论如何通过遵循 SOLID 原则来改善它们。我们将分析代码并识别原则的违反情况。最后,我们将重构 C++ 代码,使其更加符合 SOLID 原则,并讨论这样做的意义和时机。 本课程注重实践,您将自己编写大量符合 SOLID 原则的 C++ 代码。每个原则都有一个实验室,您将收到一段代码,分析后再进行重构,使其更加符合 SOLID 原则。您是否感兴趣?准备好将您的 C++ 技能提升到新水平了吗?加入我,一起开始这门课程吧!

课程评论(0条)

课程详情

In this course, we learn how to develop C++ according to the SOLID Principles.Have you ever heard of the SOLID principles? They are design principles that help us write maintainable and reusable code.If you are familiar with SOLID, you might have watched a tutorial or two.Were the tutorials using "Shape" or "Animal" classes in their oversimplified examples?Were they written in Java or focused on some domain you are not interested in?Well, this course is different. First of all, you get a real insight into what the SOLID principles are about. No sugar-coating, no fancy design patterns, or exotic language features.Secondly, the course is in C++. Simple, modern C++ with pragmatic examples you may encounter in production code-bases.Production code is not always perfect, but it is normally not terrible either.Violations of SOLID are subtle, and you will learn to recognize them.Refactoring does not always makes sense, but after this course you will be able to determine when it does.Step-by-step, we go through each principle and map it to well-known programming practices and quality attributes.We look at several practical examples and discuss how they can be improved by following the SOLID principles.We analyze code and identify violations of the principles.Finally, we refactor C++ to make it more SOLID and discuss whether or when that makes sense.You are looking a hands-on course. You will write a lot of SOLID C++ code yourself. There is a lab for each principle, where you will receive a piece of code, analyze it, and then refactor it to make it more SOLID.Intrigued? Ready to take your C++ to the next level? Join me in this course, and let's get started!

课程标签

0人关注该课程

主题相关的课程