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: 17,282 of 180,689
Downloads: 83,328

Daily

Ranking: 5,689 of 180,681
Downloads: 400

Depended by

RankDownloadsName
169,7241,964draw_color_repeat

Depends on

RankDownloadsName
12,105,896,669bundler
13878,428,405rspec-mocks
24772,514,050rspec
101314,933,730simplecov
215148,114,990rdoc
1,62213,383,672coveralls
3,9001,817,286jeweler
17,60480,828puts_debuggerer
47,36120,704rake-tui

Owners

#GravatarHandle
1iconandy_maleh
2iconAndyMaleh