프로젝트
GitHub에서 보기
davidgf/design-patterns-in-ruby
소개
Ruby로 구현한 GoF 디자인 패턴
학습 및 교육측정된 스타 증가
- in 24h
- 0
- in 7 days
- -1
- in 15 days
- -2
- in 1 month
- -3
서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.
README.md
OriginalDesign Patterns in Ruby
Summary of the design patterns explained in the book Design Patterns in Ruby, where Russ Olsen explains and adapts to Ruby 14 of the original 23 GoF design patterns.
Design Patterns
GoF Patterns
- Adapter: helps two incompatible interfaces to work together
- Builder: create complex objects that are hard to configure
- Command: performs some specific task without having any information about the receiver of the request
- Composite: builds a hierarchy of tree objects and interacts with all them the same way
- Decorator: vary the responsibilities of an object adding some features
- Factory: create objects without having to specify the exact class of the object that will be created
- Interpreter: provides a specialized language to solve a well defined problem of know domain
- Iterator: provides a way to access a collection of sub-objects without exposing the underlying representation
- Observer: helps building a highly integrated system, maintainable and avoids coupling between classes
- Proxy: allows us having more control over how and when we access to a certain object
- Singleton: have a single instance of certain class across the application
- Strategy: varies part of an algorithm at runtime
- Template Method: redefines certain steps of an algorithm without changing the algorithm's structure
Non-GoF Patterns: Patterns For Ruby
- Convention Over Configuration: build an extensible system and not carrying the configuration burden.
- Domain-Specific Language: build a convenient syntax for solving problems of a specific domain.
- Meta-Programming: gain more flexibility when defining new classes and create custom tailored objects on the fly.
Contributing
Contributions are welcome! What could you do?:
- Find typos and grammar mistakes
- Propose a better way to explain a pattern
- Add clearer examples of a pattern usage
- Add other GoF patterns that are not covered in the book
Code examples refactoring PR's will not be considered. The examples provided by Russ Olsen in his book are meant to be simple and self explanatory, not the best performing or most elegant, their purpose is just educational.
관련 프로젝트 살펴보기
불러오는 중…