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: 11,211 of 186,959
Downloads: 221,138

Daily

Ranking: 6,516 of 186,713
Downloads: 398

Depended by

RankDownloadsName
172,0052,221draw_color_repeat

Depends on

RankDownloadsName
12,905,736,219bundler
191,048,768,703rspec-mocks
27909,387,510rspec
99413,507,374simplecov
190231,578,823rdoc
1,79515,707,523coveralls
4,2671,965,691jeweler
7,840478,093puts_debuggerer
30,41241,644rake-tui

Owners

#GravatarHandle
1iconandy_maleh
2iconAndyMaleh