Scolding can be an appropriate learning tool for children. It's in the Bible, Proverbs 29:15, TLB. "Scolding and spanking a child helps him to learn. Left to himself, he brings shame to his mother."
Too much scolding, however, can be counter productive. It's in the Bible, Colossians 3:21, TLB. "Fathers, don't scold your children so much that they become discouraged and quit trying."
The purpose of discipline is to help the children mature, not to anger them. It's in the Bible, Ephesians 6:4, TLB. "And now a word to you parents. Don't keep on scolding and nagging your children, making them angry and resentful. Rather, bring them up with the loving discipline the Lord Himself approves, with suggestions and godly advice."