"Debits and credits are nothing more than “increases” and “decreases” to accounts." Don't try to apply logic; it is just a convention: debits to the left, credits to the right.
In particular, the first example above is correct. An asset account is increased by debits; a credit increases a revenue account.
In particular, the first example above is correct. An asset account is increased by debits; a credit increases a revenue account.
Salary received:
Income: Salary - Credit
Assets: Checking - Debit.