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,761 of 189,455
Downloads: 258,643

Daily

Ranking: 5,734 of 189,432
Downloads: 479

Depended by

RankDownloadsName
171,8292,476draw_color_repeat

Depends on

RankDownloadsName
13,180,975,277bundler
211,100,686,103rspec-mocks
29949,350,330rspec
99443,462,816simplecov
176272,746,980rdoc
1,87816,056,627coveralls
4,3022,097,634jeweler
7,185609,151puts_debuggerer
29,36746,221rake-tui

Owners

#GravatarHandle
1iconandy_maleh
2iconAndyMaleh