Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/loqimean/design_patterns


https://github.com/loqimean/design_patterns

Last synced: about 5 hours ago
JSON representation

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