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,855 of 183,021
Downloads: 148,813
Daily
Ranking: 5,141 of 183,007
Downloads: 560
Downloads Trends
Ranking Trends
Num of Versions Trends
Popular Versions (Major)
Popular Versions (Major.Minor)
Depended by
Rank | Downloads | Name |
---|---|---|
170,711 | 2,061 | draw_color_repeat |
Depends on
Rank | Downloads | Name |
---|---|---|
1 | 2,395,445,721 | bundler |
15 | 933,871,997 | rspec-mocks |
25 | 816,166,900 | rspec |
99 | 346,931,462 | simplecov |
210 | 167,054,214 | rdoc |
1,702 | 14,074,623 | coveralls |
4,062 | 1,853,841 | jeweler |
10,837 | 205,831 | puts_debuggerer |
45,653 | 22,708 | rake-tui |
Owners
# | Gravatar | Handle |
---|---|---|
1 | andy_maleh | |
2 | AndyMaleh |