|
所在平台: Udemy |
课程主页: https://www.udemy.com/course/design-patterns-go/
课程评论:没有评论
课程名称:Go语言中的设计模式 课程概述: 该课程全面介绍了Go语言中的设计模式,侧重于实用性。课程内容包括使用最新版本的Go编程语言、现代编程库和框架,以及现代开发工具(如JetBrains GoLand)的应用。此外,课程还探讨了设计模式的变体和替代方法。所有的“四人帮”(GoF)设计模式将被覆盖,包括现代变体和在语言中固有使用模式的讨论。 什么是设计模式? 设计模式是解决常见编程问题的可重用解决方案。这一概念由Erich Gamma、John Vlissides、Ralph Johnson和Richard Helm在1994年的书籍《设计模式:可重用面向对象软件的元素》中普及。尽管原书使用C++和Smalltalk作为示例,但设计模式已被适配到几乎所有编程语言中,包括C#、Java、Swift、Python、JavaScript,现如今也包括Go语言。设计模式的吸引力是永恒的,它们在许多库中体现,并且某些模式在编程语言中是固有的,用户即使没有意识到,日常工作中也可能在使用这些模式。 课程涵盖的模式: 本课程涵盖所有的GoF设计模式,具体包括: - SOLID设计原则:单一职责原则、开放-闭合原则、里氏替换原则、接口隔离原则和依赖反转原则 - 创建型设计模式:生成器、工厂(工厂方法和抽象工厂)、原型和单例 - 结构型设计模式:适配器、桥接、组合、装饰、外观、享元和代理 - 行为型设计模式:责任链、命令、解释器、迭代器、中介者、备忘录、观察者、状态、策略、模板方法和访问者 适合对象: 该课程适合希望不仅学习教科书示例,还想了解设计模式的不同变体和现代实现技巧的Go开发者。例如,使用组合模式可以使结构可迭代,并让标量对象伪装成集合。 呈现风格: 课程主要通过在JetBrains GoLand中的现场演示进行呈现,使用Kinetica渲染引擎。Kinetica去除了IDE的视觉杂乱,使学习者更专注于代码,无论在大屏幕还是手机上观看,都能呈现完美。大多数演示为单文件形式,学习者可以下载附带的文件,在GoLand或其他选择的IDE中运行,或直接从命令行运行。课程不使用UML类图,所有演示均通过实时编码完成。
Course OverviewThis course provides a comprehensive overview of Design Patterns in Go from a practical perspective. This course in particular covers patterns with the use of:The latest versions of the Go programming languageUse of modern programming libraries and frameworksUse of modern developer tools such as JetBrains GoLandDiscussions of pattern variations and alternative approachesThis 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, JavaScript and now - Go!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 PrincipleCreational Design Patterns: Builder, Factories (Factory Method and Abstract Factory), Prototype and SingletonStructrural Design Patterns: Adapter, Bridge, Composite, Decorator, Façade, Flyweight and ProxyBehavioral Design Patterns: Chain of Responsibility, Command, Interpreter, Iterator, Mediator, Memento, Observer, State, Strategy, Template Method and VisitorWho Is the Course For?This course is for Go 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 the Composite pattern allows structures to be iterable and lets scalar objects masquerade as if they were collections.Presentation StyleThis course is presented as a (very large) series of live demonstrations being done in JetBrains GoLand 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 GoLand, 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.