0
votes
2answers
285 views

Which could be a good design pattern for complex numeric calculations between three or more different data models?

The source code I'm working on at the moment performs numeric calculations between a bunch of different properties belonging to different data models. All the calculations are coded in a big method ...
5
votes
2answers
994 views

Data structure for pattern matching

Let's say you have an input file with many entries like these: date, ticker, open, high, low, close, <and some other values> And you want to execute a pattern matching routine on the ...
22
votes
6answers
2k views

Is there a design pattern that would apply to discount models?

Are there any known design patterns for implementing discount models? By discount models, I mean the following: If a customer buys Product X, Product Y and Product Z he gets a discount of 10% or ...