We've expanded our news coverage and improved our search! Visit
oreilly.com for the latest or search for all things across O'Reilly!
| Weblog: |
|
Code Generation: Another Justification
|
| Subject: |
|
Another code generation success story |
| Date: |
|
2002-11-13 12:02:12 |
| From: |
|
anonymous2
|
|
|
We have financial positions (objects) that are stored in a database and the positions are of particular types (classes). We store all these disparate objects into a single column in the database and at runtime, we shunt them off to code that knows how to price them. It got to be a serious pain in the butt to write code that consumed the XML, validating it for correct inclusion of all fields needed for pricing, and then sending it off to be priced by a financial model, so we define the instruments in XML and machine-generate the COM code (IDL, CPP, H, RGS, etc.). So we ended up with a translator of our own to deal with this task. I am so much happier since we did. Now we have 400 machine-generated files and we only have to make the correct changes in one place -- the XML source file.
|