Categories: None [Edit]

strategic

https://rubygems.org/gems/strategic
https://github.com/AndyObtiva/strategic
if/case conditionals can get really hairy in highly sophisticated business domains. Domain model inheritance can help remedy the problem, but you don't want to dump all logic variations in the same domain models. Strategy Pattern solves that problem by externalizing logic variations to separate classes outside the domain models. One difficulty with implementing Strategy Pattern is making domain models aware of newly added strategies without touching their code (Open/Closed Principle). Strategic solves that problem by supporting Strategy Pattern with automatic discovery of strategies and ability fetch the right strategy without conditionals. This allows you to make any domain model "strategic" by simply following a convention in the directory/namespace structure you create your strategies under so that the domain model automatically discovers all available strategies.

Total

Ranking: 18,057 of 180,434
Downloads: 76,991

Daily

Ranking: 5,440 of 180,417
Downloads: 456

Depended by

RankDownloadsName
169,6381,942draw_color_repeat

Depends on

RankDownloadsName
12,072,399,962bundler
13871,843,685rspec-mocks
23767,349,058rspec
102311,286,794simplecov
214146,358,572rdoc
1,61713,296,505coveralls
3,8841,812,636jeweler
17,66579,634puts_debuggerer
47,53720,470rake-tui

Owners

#GravatarHandle
1iconandy_maleh
2iconAndyMaleh