|
所在平台: Udemy |
课程主页: https://www.udemy.com/course/java-designpatterns/
课程评论:没有评论
课程名称:初学者的流行Java设计模式 课程概述:在软件工程中,设计模式是针对软件设计中常见问题的一种通用的、可重复的解决方案。设计模式并不是能直接转化为代码的成品设计,而是一种解决问题的描述或模板,可以在多种情境中使用。设计模式通过提供经过验证的开发范式,加快了开发过程。有效的软件设计需要考虑实施过程中可能不会在早期显现的问题。重用设计模式有助于防止可能导致重大问题的细微错误,并提高熟悉这些模式的编码人员和架构师的代码可读性。 设计模式以不特定于特定问题的形式提供通用解决方案,并允许开发人员使用众所周知且易于理解的软件交互名称进行交流。常见的设计模式可以随着时间的推移而改进,使其比临时设计更具鲁棒性。 在本课程中,我们将探讨以下几种流行的设计模式: 1. **创建型设计模式**:关注类的实例化,进一步分为类创建模式和对象创建模式。 - 工厂模式 - 抽象工厂模式 - 单例模式 - 建造者模式 2. **结构型设计模式**:关注类和对象的组合。 - 适配器模式 - 组合模式 - 装饰器模式 - 外观模式 3. **行为型设计模式**:关注类与对象之间的通信。 - 责任链模式 - 迭代器模式 - 观察者模式 - 状态模式 - 策略模式 此外,课程提供源码示例和问题,以帮助学生深入理解这些设计模式。
In software engineering, a design pattern is a general repeatable solution to a commonly occurring problem in software design. A design pattern isn't a finished design that can be transformed directly into code. It is a description or template for how to solve a problem that can be used in many different situations.Design patterns can speed up the development process by providing tested, proven development paradigms. Effective software design requires considering issues that may not become visible until later in the implementation. Reusing design patterns helps to prevent subtle issues that can cause major problems and improves code readability for coders and architects familiar with the patterns.Design patterns provide general solutions, documented in a format that doesn't require specifics tied to a particular problem.In addition, patterns allow developers to communicate using well-known, well understood names for software interactions. Common design patterns can be improved over time, making them more robust than ad-hoc designs.Creational design patterns are all about class instantiation. This pattern can be further divided into class-creation patterns and object-creational patterns. While class-creation patterns use inheritance effectively in the instantiation process, object-creation patterns use delegation effectively to get the job done.Structural design patterns are all about Class and Object composition. Structural class-creation patterns use inheritance to compose interfaces. Structural object-patterns define ways to compose objects to obtain new functionality.Behavioral design patterns are all about Class's objects communication. Behavioral patterns are those patterns that are most specifically concerned with communication between objects.The course covers following popular patterns:Creational Design Patterns FactoryAbstract FactorySingletonBuilderStructural Design PatternsAdapterCompositeDecoratorFacadeBehavioral Design PatternsChain Of ResponsibilityIteratorObserverStateStrategysource code examples and questions