A 'strategy' is a general plan for meeting objectives.

learn more… | top users | synonyms

17
votes
5answers
8k views

What is your application versioning strategy? [duplicate]

I would be interested to get the SO community's opinions on the best application versioning strategy. My questions: How do you keep track of your application's version number? Do you have a formal ...
9
votes
6answers
3k views

Can the Strategy pattern be implemented without significant branching?

The Strategy pattern works well to avoid huge if...else constructs and make it easier to add or replace functionality. However, it still leaves one flaw in my opinion. It seems like in every ...
2
votes
2answers
800 views

Liskov substitution and abstract classes / strategy pattern

I'm trying to follow LSP in practical programming. And I wonder if different constructors of subclasses violate it. It would be great to hear an explanation instead of just yes/no. Thanks much! P.S. ...
0
votes
2answers
619 views

Pattern for caching DAOs: strategy or decorator?

I'm building a php system with the Services/DAOs/Domain Models pattern, and now is the time to implement a caching system for the DAOs. Would you use a decorator pattern, or maybe the strategy ...
3
votes
2answers
2k views

Strategy vs Delegates

Can the Strategy design pattern entirely replace delegates? In Java, for example, there are no delegates. Is it possible to gain all the features of delegates by using Strategy design pattern? Edit:...
1
vote
3answers
344 views

Where to check that a function actually did what I told it to?

Consider this function intended to kill all running instances of a subprocess: killAllFoobars() { pids = getRunningFoobars(); foreach ( pids as p ) { killOneFoobar(p); } ...