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,791 of 188,987
Downloads: 254,497

Daily

Ranking: 6,905 of 188,969
Downloads: 272

Depended by

RankDownloadsName
171,7262,467draw_color_repeat

Depends on

RankDownloadsName
13,140,358,481bundler
211,093,907,874rspec-mocks
29944,054,300rspec
99439,304,279simplecov
177267,328,210rdoc
1,86816,016,713coveralls
4,2992,076,106jeweler
7,258589,118puts_debuggerer
29,43845,865rake-tui

Owners

#GravatarHandle
1iconandy_maleh
2iconAndyMaleh