top | item 42304542

(no title)

AlDante2 | 1 year ago

I previously worked for a company developing custom software some of Germany’s leading banks. Even (back in the nineties) when we had to use languages such as Natural and COBOL, we developed a macro language (that compiled to COBOL) to let us use more specific types.

Particularly in finance, yo need to distinguish between dates and durations, between interest rates and volatility and a host of other business concepts. Using strong user-defined types helps catch errors at compile time. I would have no problem, on a large project, with having every variable (with the possible exception of counters, etc.) being a user-defined type. On small projects, where one developer can comfortably oversee all of the code, the overhead of correctly defining types and their operations might not outweigh the benefits. In user-facing code, for example, UI frameworks don’t use business types. Writing conversion routines to translate user input to a business type can be a disproportionate amount of work for a small project.

discuss

order

No comments yet.