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,896 of 187,950
Downloads: 243,069

Daily

Ranking: 6,695 of 187,922
Downloads: 397

Depended by

RankDownloadsName
171,7892,392draw_color_repeat

Depends on

RankDownloadsName
13,044,215,819bundler
191,075,773,945rspec-mocks
28929,993,045rspec
99428,731,506simplecov
180252,918,034rdoc
1,83715,884,575coveralls
4,3052,019,127jeweler
7,530543,183puts_debuggerer
29,80544,275rake-tui

Owners

#GravatarHandle
1iconandy_maleh
2iconAndyMaleh