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: 10,833 of 188,252
Downloads: 248,114

Daily

Ranking: 10,134 of 188,232
Downloads: 96

Depended by

RankDownloadsName
171,8132,420draw_color_repeat

Depends on

RankDownloadsName
13,079,967,256bundler
201,082,776,927rspec-mocks
29935,425,343rspec
99432,633,044simplecov
179258,159,855rdoc
1,84215,931,730coveralls
4,3082,034,235jeweler
7,401561,519puts_debuggerer
29,68444,817rake-tui

Owners

#GravatarHandle
1iconandy_maleh
2iconAndyMaleh