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,840 of 188,572
Downloads: 249,896

Daily

Ranking: 9,709 of 188,550
Downloads: 63

Depended by

RankDownloadsName
171,6372,453draw_color_repeat

Depends on

RankDownloadsName
13,106,106,597bundler
211,087,772,307rspec-mocks
29939,301,389rspec
99435,541,406simplecov
176262,269,964rdoc
1,85915,970,045coveralls
4,3072,051,726jeweler
7,356570,960puts_debuggerer
29,60845,283rake-tui

Owners

#GravatarHandle
1iconandy_maleh
2iconAndyMaleh