Categories: None [Edit]
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
Downloads Trends
Ranking Trends
Num of Versions Trends
Popular Versions (Major)
Popular Versions (Major.Minor)
Depended by
Rank | Downloads | Name |
---|---|---|
170,885 | 2,080 | draw_color_repeat |
Depends on
Rank | Downloads | Name |
---|---|---|
1 | 2,455,829,279 | bundler |
15 | 945,198,516 | rspec-mocks |
25 | 824,998,340 | rspec |
98 | 353,709,953 | simplecov |
210 | 172,448,676 | rdoc |
1,725 | 14,121,835 | coveralls |
4,088 | 1,860,804 | jeweler |
10,144 | 238,516 | puts_debuggerer |
45,227 | 23,207 | rake-tui |
Owners
# | Gravatar | Handle |
---|---|---|
1 | andy_maleh | |
2 | AndyMaleh |