Instead of yelling and spanking, which don't work anyway, I believe in finding creative ways to keep their attention - turning things into a game, for instance. And, when they do something good, positive reinforcement and praise.
Some old men, continually praise the time of their youth. In fact, you would almost think that there were no fools in their days, but unluckily they themselves are left as an example.
Our dependency makes slaves out of us, especially if this dependency is a dependency of our self-esteem. If you need encouragement, praise, pats on the back from everybody, then you make everybody your judge.
Few governments in the world, for example, praise human rights more ardently than does the government of France, and few have a worse record of supporting tyrants and killers.