That's not exactly an accurate guide to how to build credit, but it's close.
The idea is to keep your creditors happy, meaning you pay your debts. So, that means not missing payments, not leaving large amounts of money on your credit cards month after month (or if you do, make sure you also pay a lot month after month), actively using your credit card, etc.
You don't have to pay it in full the week after you make a purchase, as long as you're diligent about paying most of the debt off every month (credit cards have closing dates and then payment deadlines, usually the deadline is a little less than a month after the closing date) you'll be good.