Neither one has any place in the life of a Christian parent. God has dealt with me about this, so much so that I finally asked my children to tell me when I sound angry with them. They usually forget, but the offer still stands. I need all the help I can get to overcome the sin in my life, including help from my children. Let the Word of God answer the question.
Children react just as adults do.
When somebody talks to them in angry tones, it makes them resentful and rebellious. It's like rubbing sandpaper on their emotions. Then when they get angry, it makes their parents more angry, and the vicious cycle ends in a verbal brawl from which nobody benefits. If the child gets hit in that rage, it increases his fear and deepens his hostility. And whether he gets hit or not, he usually becomes more sullen and unresponsive and loses respect for the parent whose emotions he can arouse like a plaything.