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,491 of 196,125
Downloads: 310,929

Daily

Ranking: 49,580 of 196,106
Downloads: 0

Depended by

RankDownloadsName
173,6762,670draw_color_repeat

Depends on

RankDownloadsName
13,667,363,143bundler
221,181,628,358rspec-mocks
291,010,713,264rspec
98493,495,493simplecov
154336,233,276rdoc
1,91317,181,528coveralls
4,3702,296,720jeweler
6,892783,219puts_debuggerer
28,60251,628rake-tui

Owners

#GravatarHandle
1iconandy_maleh
2iconAndyMaleh