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,593 of 197,085
Downloads: 311,574

Daily

Ranking: 55,182 of 197,066
Downloads: 1

Depended by

RankDownloadsName
174,7062,687draw_color_repeat

Depends on

RankDownloadsName
13,796,160,121bundler
221,200,829,856rspec-mocks
291,025,379,194rspec
98505,778,426simplecov
150353,290,307rdoc
1,91717,418,617coveralls
4,3882,322,951jeweler
6,892802,140puts_debuggerer
28,26353,213rake-tui

Owners

#GravatarHandle
1iconandy_maleh
2iconAndyMaleh