3 ms·
I always use double accounting from finances to explain tests. You don't do logic changes in one places, but in a second to double check it actually works out.
by zeisss 11y ago
I always use double accounting from finances to explain tests. You don't do logic changes in one places, but in a second to double check it actually works out.
- rev_bird 11y agoThank you for this -- it will be put to almost immediate use.
- rhizome31 11y agoSounds good, if only I understood double accounting :-)
- andrewflnr 11y agoThe principle is simple. Basically your entire accounting log is always a balanced equation: sum(assets) = sum(liabilities) + sum(owner's equity). Every transaction gets recorded on both sides of this equation, so you can check for (certain kinds of) mistakes by adding up everything on both sides and seeing if it matches. This is a vast oversimplification, and possibly slightly wrong, but hopefully illuminates the connection with unit testing. :)
- kochthesecond 11y agoThanks, I'm a consultant and will use this analogy in the future. I apologize to all the in-house developers, we truly try to sell in quality but it's extremely hard to convince technologically impaired managers this, especially when the budget is fixed.