News for hackers. Stuff that matters.
Re:Double Entry Accounting for Developers by mumblemumble on Monday July 27, 2020 @07:44PM (#23970681)
One thing I really appreciate about YNAB is that they ditched the obscure words with murky Latin roots and rules to memorize about flipping signs and whatnot, and just used the words "inflow" and "outflow". They don't mean anything different in this context than "debit" and "credit." But still, somehow, when you use the traditional words, the topic seems to be as difficult to explain as monads, while with the YNAB terms it ends up being obvious and intuitive.
Re:Double Entry Accounting for Developers by gowld on Monday July 27, 2020 @09:11PM (#23971258)
The problem with "debit" and "credit" is that everyone learned the words backwards, thanks to the banking industry's terrible UX. "Your" debit and credit accounts are actually the bank's accounts for their relationship with you.

So when you start being your own enterprise, you have to unlearn the two most fundamental words you know.

Re:Double Entry Accounting for Developers by Ozzie_osman on Monday July 27, 2020 @09:56PM (#23971538)
This is the right model, and the easiest way to explain it. It's all stocks and flows. A balance is a stock, a transaction is a flow. A flow has to happen between two stocks, and the sign in each side is opposite so it adds to zero
Re:Double Entry Accounting for Developers by jamesmackennon on Monday July 27, 2020 @09:59PM (#23971565)
...but sometimes things aren't inflows or outflows. Depreciation is neither, yet it's (almost) fundamental to accounting.
Re:Double Entry Accounting for Developers by mumblemumble on Monday July 27, 2020 @10:16PM (#23971663)
Depreciation is also neither a credit nor a debit.

Doesn't one normally handle depreciation by creating an expense account called "depreciation", and recording the depreciation as a debit in the asset account and a credit in the depreciation account?

And couldn't one just as easily word that as, "We track the depreciation by creating an account for it, and recording a flow of money into it from the asset's account?"

Re:Double Entry Accounting for Developers by bokstavkjeks on Tuesday July 28, 2020 @01:13PM (#23978128)
You often end up with three accounts. Asset (balance sheet), accumulated depreciation (balance sheet), and the depreciation expense account (P&L).

In which case the depreciation is cr. acc. depreciation and dr. depreciation expense.

Re:Double Entry Accounting for Developers by feanaro on Tuesday July 28, 2020 @05:39AM (#23974001)
Yes, but the other way around: you debit the "Depreciation" expense account (since it is the sink, it increases) and credit the asset account (it is the source, it decreases).
Re:Double Entry Accounting for Developers by mumblemumble on Tuesday July 28, 2020 @08:56AM (#23975177)
I rest my case.