Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/loqimean/design_patterns
https://github.com/loqimean/design_patterns
Last synced: about 5 hours ago
JSON representation
- Host: GitHub
- URL: https://github.com/loqimean/design_patterns
- Owner: loqimean
- Created: 2024-02-19T05:41:55.000Z (9 months ago)
- Default Branch: main
- Last Pushed: 2024-02-20T07:31:55.000Z (9 months ago)
- Last Synced: 2024-10-21T14:58:34.261Z (30 days ago)
- Language: Ruby
- Size: 4.88 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Pattersn list:
- Observer - [article](https://medium.com/@kroolar/design-patterns-in-ruby-observer-fb9aff359dbc)
- very useful on some updates of sensors data for example, or on some target update to notify requested observers like teams od support, marketing etc.
- Command - [article](https://medium.com/@kroolar/design-patterns-in-ruby-command-dbb7f9492de0)
- is usefull on a smart home devices for example when you need to encapsulate logic of turning on/of device, or other commands like get info, states, open door etc
- Decorator - [article](https://medium.com/@kroolar/design-patterns-in-ruby-decorator-6a9dbbeda664)
- usefull when you wanna leave your class clear, like when you store date in a User class, but some helper methods etc, you move to decorator