4 ms·
My home-grown accounting system, written in a language with great support for functional programming, is based on objects. accounts, transactions, transaction d
by kazinator 8y ago
My home-grown accounting system, written in a language with great support for functional programming, is based on objects.
accounts, transactions, transaction deltas, ledgers, are all objects. Starting from a blank slate, a file is loaded which defines the ledger entries. These definitions are processed one by one, using mutable updates to the object framework. What is left is then the state of the ledger with all those entries and that can be subject to various queries and reports.