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,541 of 196,721
Downloads: 311,232

Daily

Ranking: 36,893 of 196,694
Downloads: 1

Depended by

RankDownloadsName
174,1792,673draw_color_repeat

Depends on

RankDownloadsName
13,728,237,794bundler
221,191,030,149rspec-mocks
291,017,967,488rspec
98499,434,149simplecov
152344,213,097rdoc
1,91517,307,038coveralls
4,3732,311,909jeweler
6,885793,433puts_debuggerer
28,54352,083rake-tui

Owners

#GravatarHandle
1iconandy_maleh
2iconAndyMaleh