|
所在平台: Udemy |
课程主页: https://www.udemy.com/course/design-patterns-swift/
课程评论:没有评论
Coursera 上的“Swift 设计模式”课程是对 Swift 语言中设计模式的全面、实用的介绍。本课程深入探讨了 GoF(Gang of Four)设计模式的全部内容,并结合了现代编程方法,如依赖注入和响应式编程。 **课程亮点:** * **Swift 最新特性:** 使用最新版本的 Swift 语言进行讲解,确保内容的时效性。 * **现代编程实践:** 重点介绍如何通过依赖注入、响应式编程等现代技术来应用设计模式。 * **工具链优化:** 演示如何利用现代开发者工具来高效实现设计模式。 * **模式变体与替代方案:** 深入讨论设计模式的变体和替代性实现方式,提供更灵活的解决方案。 * **GoF 全覆盖:** 涵盖所有 GoF 设计模式,包括 SOLID 设计原则(单一职责、开闭、里氏替换、接口隔离、依赖倒置)、创建型模式(建造者、工厂、原型、单例)、结构型模式(适配器、桥接、组合、装饰器、外观、享元、代理)以及行为型模式(责任链、命令、解释器、迭代器、中介者、备忘录、空对象、观察者、状态、策略、模板方法、访问者)。 * **实践驱动:** 课程以大量的实时演示(live coding)进行讲解,而非理论化的 UML 图。学员可以直接下载演示代码,在 Xcode 或其他 IDE 中运行。 * **目标学员:** 适合希望深入理解设计模式在 Swift 中现代应用的 Swift 开发者。 本课程旨在帮助学员不仅理解设计模式的经典用法,更能掌握其在现代 Swift 开发中的灵活应用和优化技巧。
Course Overview This course provides a comprehensive overview of Design Patterns in Swift from a practical perspective. This course in particular covers patterns with the use of: The latest versions of the Swift programming languageUse of modern programming approaches: dependency injection, reactive programming and moreUse of modern developer toolsDiscussions 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 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, Null Object, Observer, State, Strategy, Template Method and Visitor Who Is the Course For? This course is for Swift 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. All 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. I use Visual Studio Code for the demos.