Porter has a book - the alternatives to debits and credits, using financial information.
Basically accounting is an equation you keep in balance.
Assets = Liabilities + Equity
You can understand how any transaction "posts" by keeping this equation in balance (or solving it).
You borrowed $100K? Your liabilities are + 100K, and cash (an asset) is also + 100K. Books in balance.
(Change in) Equity = Income - Expense
Extends this formula to your profit and loss statement if needed. Errors accumulate in the balance sheet as well.
Note that balance sheet is more important. With two balance sheets at different times I can see my net income for that period (no categorization of income / expense needed).