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: 12,339 of 183,471
Downloads: 162,850

Daily

Ranking: 61,367 of 183,459
Downloads: 0

Depended by

RankDownloadsName
170,8852,080draw_color_repeat

Depends on

RankDownloadsName
12,455,829,279bundler
15945,198,516rspec-mocks
25824,998,340rspec
98353,709,953simplecov
210172,448,676rdoc
1,72514,121,835coveralls
4,0881,860,804jeweler
10,144238,516puts_debuggerer
45,22723,207rake-tui

Owners

#GravatarHandle
1iconandy_maleh
2iconAndyMaleh