• Post Reply Bookmark Topic Watch Topic
  • New Topic

Application design for rapidly changing formulae  RSS feed

 
Aditya Karnad
Greenhorn
Posts: 16
Eclipse IDE Firefox Browser Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello!

Here's an application design question... there are no wrong answers, but just different ways of implementing this. I wanna know the most feasible one so feel free to post your suggestions.
Here goes:

This application makes calculations based on formulae which changes every week. And currently there are Calculator classes which have hardcoded these formulae in methods. So every week when it changes, someones oughta dig into the code to figure out what needs to be changed.

I'm looking for a way to change this in a way that the formulae can be changed without changing the code.

Here's the general idea of what I wanna do - Store the formulae and the application code in different layers.
The application is modified and made smarter such that it recognises everytime the formulae change and adapts accordingly.

Any suggestions? Which is the best way of storing such formulae? XMLs? How would you go about doing this?

Cheers!
 
Harsha Gedala
Ranch Hand
Posts: 41
Eclipse IDE Java Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can even use a property file and extract the formula from it.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!