Golden rules of accounting convert complex book-keeping rules into a set of well defined principles which can be easily studied and applied.
Real accounts involve machinery, land and building etc... Similarly when you credit what goes out, you are reducing the account balance when a tangible asset goes out of the organization. Debit All Expenses And Losses, Credit All Incomes And Gains. This rule is applied when the account in question is a nominal account.
---Debit the receiver
---Credit the Giver
---Debit what comes in
---Credit what goes out
---Debit all expenses and losses
---Credit all income and gains