strategy-pattern Questions
6
Solved
I am basically trying to implement a Strategy pattern, but I want to pass different parameters to the "interfaces" implementation (that inherit from the same object) and don't know if this is possi...
Nude asked 24/12, 2009 at 17:29
8
Solved
I just came across two patterns.
Strategy Pattern
Decorator
Strategy Pattern :-
Strategy pattern gives several algorithms that can be used to perform
particular operation or task.
Dec...
Ebonize asked 17/10, 2014 at 10:19
7
Solved
What is the difference between the Strategy pattern and the Command pattern? I am also looking for some examples in Java.
Diplodocus asked 29/1, 2011 at 3:33
21
What are the differences between the Strategy design pattern and the State design pattern? I was going through quite a few articles on the web but could not make out the difference clearly.
Can so...
Feverish asked 1/11, 2009 at 20:11
3
Solved
Why is the strategy design pattern and the adapter related to each other?
It seams to me that the adapter manipulates the result of some method to fullfill the input needs of anotherone. Wheras the...
Nigh asked 3/9, 2017 at 12:25
12
Solved
I have trouble understanding these two design patterns.
Can you please give me contextual information or an example so I can get a clear idea and be able to map the difference between the two of ...
Beacham asked 29/12, 2011 at 7:59
3
Solved
Here's the the general problem I am trying to solve:
One set of packages is collecting data from one source and sending it to many channels.
A second set of packages is collecting data from many ...
Roman asked 22/7, 2013 at 14:0
8
Solved
I'm raising this question because of another question I asked here on SO some days ago.
I had to solve an specific problem, and after two replies I got, I realized two patterns can help to solve th...
Aalst asked 18/2, 2011 at 8:20
15
Solved
Can any one explain the difference between factory and strategy patterns?
For me both are looking same other than an extra factory class (which create an object of product in factory patterns)
Statolith asked 5/3, 2009 at 21:53
2
Solved
I have the following code with multiple cases:
def _extract_property_value(selector: Selector) -> str:
raw_value = selector.xpath("span[2]")
default_value = raw_value.xpath("./...
Teeming asked 4/4, 2022 at 10:42
15
Solved
I tried to read many articles on dofactory, wikipedia and many sites.
I have no idea on differences between bridge pattern and the strategy pattern.
I know both of them decouple an abstraction fro...
Pontiff asked 21/1, 2009 at 9:9
1
I am trying to use the strategy pattern for the service, however the Module I try to use as context for strategy seems to only stick to one of the two. Here is the example code:
animal.module.ts
@M...
Indigo asked 22/4, 2021 at 17:5
19
I've been reading about the OCP principle and how to use the strategy pattern to accomplish this.
I was going to try and explain this to a couple of people, but the only example I can think of is u...
Conversational asked 16/12, 2008 at 1:29
2
I'm learning about the Strategy Pattern and it seems like an amazing alternative to inheritance. I keep thinking about use-cases for it but there's this thing I keep struggling with when I try to c...
Christeenchristel asked 4/6, 2021 at 8:6
6
Solved
I've been looking at strategy pattern implementation examples and it seems to me like they are very similar to c# delegates. The only difference I see is that strategy pattern implementations don't...
Marinara asked 9/2, 2009 at 19:31
19
Solved
Can someone please explain to me what is the difference between the template method pattern and the strategy pattern is?
As far as I can tell they are 99% the same - the only difference being
that...
Brownout asked 21/3, 2009 at 13:6
4
Solved
I can not understand why to use Context module(which we will see in the following codes) in strategy design pattern, what its function? Let's see one part of the strategy design pattern.
public in...
Soukup asked 13/1, 2016 at 2:48
5
Solved
I came across a problem when using the strategy pattern. I am implementing a service for creating tasks. This service also resolves the responsible clerk for this task. Resolving the clerk is done ...
Capparidaceous asked 14/11, 2013 at 8:50
2
I know, this question was asked many times, but I did some research and still don't get it, probably you can help me out:
As stated many times, the UML is almost the same. Also the implementation a...
Selfcontradiction asked 7/8, 2016 at 13:28
10
Solved
What is the difference between the Strategy pattern and Polymorphism in Java?
I'm confused that whatever is achieved via Strategy Pattern is basically possible by polymorphism. Correct me if I'm w...
Perspective asked 24/7, 2015 at 11:2
4
Solved
I am a beginner in Design Patterns.
Suppose I am developing a C# application to track the development works performed by various members in development team (i.e. a Project Tracker).
I am trying ...
Hosey asked 19/6, 2009 at 16:38
6
Solved
In the past, I have seen the strategy pattern explained as a mechanism which allows the user of a function/class to provide their own functionality for that function/class.
I had always been taugh...
Calistacalisthenics asked 6/9, 2011 at 18:32
4
Solved
Feedback summary
I will now close this thead (I think there will be no more feedback) and try to summarize what I understood
using the "Context" as a parameter for my strategy introduces a tig...
Troupe asked 9/1, 2010 at 17:49
9
Solved
I know this question's been asked before (e.g., What is the difference between the bridge pattern and the strategy pattern?).
However, could someone please explain, using clear-cut examples, what ...
Dup asked 2/5, 2011 at 23:20
6
I have learned both the patterns but did not understand the differences between these two patterns.
I do not know scenarios, when and where to use these patterns.
Can any one explain the differe...
Aconcagua asked 28/11, 2012 at 13:37
1 Next >
© 2022 - 2024 — McMap. All rights reserved.