strategy-pattern
Coredata: Strategy Pattern Implementation
I\'m trying to implement the Strategy pattern using Core Data and Objective C. To simplify, I have, say, a multilingual Text entity, which has several attributes, such as a Date for last saved, and a[详细]
2023-01-10 11:38 分类:问答Naming convention for common patterns?
Just as there is a naming convention for the Observer pattern (or rather, a naming convention for events in languages such as C#) using Event/Handler passing EventArg开发者_JAVA技巧s and such, are the[详细]
2023-01-09 17:13 分类:问答Is there a good way to avoid unused method parameter in some of the subclasses while applying strategy pattern?
I have the following scenario where I have different kinds of sales algorithms to calculate the sales price. FixedSaleStrategy does not need basePrice parameter while all the other strategy implementa[详细]
2023-01-09 11:16 分类:问答Java equivalent of .NET Action<T> and Func<T,U>, etc [duplicate]
This question already has answers here: Java's equivalents of Func and Action (11 answers) Closed 9 years ago.[详细]
2023-01-06 21:51 分类:问答TDD with Strategy Pattern
I\'m trying to implement the strategy pattern using TDD. Each strategy item implements an interface. What\'s the best way to do this with TDD?[详细]
2023-01-01 21:38 分类:问答Which design pattern is most appropriate?
I want to create a class that can use one of four algorithms (and the algorithm to use is only known at run-time). I was thinking that the Strategy design pattern sounds appropriate, but my problem is[详细]
2023-01-01 19:43 分类:问答Managing Strategy objects with Hibernate & Spring
This is a design question better explained with a Stack Overflow analogy: Users can earn Badges. Users, Badges and Earned Badges are stored in the database. A Badge’s logic is run by a Badge Conditi[详细]
2023-01-01 04:40 分类:问答Capturing delegates in anonymous methods
Consider Action _captureAction; private void TestSimpleCapturedAction() { Action action = new Action(delegate { });[详细]
2022-12-20 15:33 分类:问答How to create a strategy pattern in Objective-C?
I need to develop a strategy pattern where i have a main class with other thre开发者_JAVA技巧e classes where i need to refer to the objects of the other three classes using the main class object.To so[详细]
2022-12-20 04:21 分类:问答Trying to understand the wikipedia strategy pattern example using new Func<int, int, int>
I was looking at this, http://en.wikipedia.org/wiki/Strategy_pattern and I understand the concept of the strategy pattern, but could someone explain the C# example a bit.[详细]
2022-12-16 00:36 分类:问答