Hi guys,
This is my first post (i think) and I was wondering if I could have a opinion from you all.
Today, the system I'm working on has a terrible design for business logic. The application is basically a bunch of formula "calculators" for every different client. All of them have their input/outputs and logic on it. The problem is that every single calculator is derived from a big superclass with some common procedures (and eventually subclasses overrided them
).
Well I really want to refactor this crap. I was thinking of the Interpreter
pattern which I could take the similiarities of the calculators and mount its complexity based on those simple procedures.
It would look like a tree:
However, I don't want to reinvent the wheel and possibly somebody else has come across this problem. I just need to know if there is a framework, standard, pattern, whatever... to solve this problem.
I appreciate your help in advance!
Valdir.