I remember 15 or 20 years (has it been that long?) when the Haskell people like dons were banging on about: 1) Moore's law being dead, 2) future CPUs will have tons of cores, and 3) good luck wrangling them in your stone age language! Check out the cool stuff we've got going on over in Haskell!
This isn't an attack on the (very well written) article though. Just wanted to add my two cents.
I know OOP isn't cool any more, but the above is what OOP solves.
TFA's transfer() and withdraw() functions aren't compliant with double-entry accounting anyways, so you'd mark them private and only expose Transfer to callers. Let the class handle its own details.
scottmas•6d ago
cosmic_quanta•6d ago
vijaysharma12•6d ago
CGamesPlay•1h ago
lmm•25m ago
LelouBil•16m ago
https://arrow-kt.io/learn/coroutines/stm/
spencerflem•9m ago
stackghost•6m ago