Both ways will work. Always talk to them, question them and explain what's right/wrong. If all fails then, cane would sometimes help. Not all the time. Disciplining doesn't mean all the being very soft spoken/lenient. We can give and take but not all the time. Kids nowadays not like our time. Use cane = abused, Use cane = not loving, Use cane = they hate us, Use cane = more rebellious.
I always use method of scold, raise voice, explaining why/what my kids do wrong and should be done correctly. Reminding them every wrong actions has consequences. And ask them should it be repeated? What if this is reoccurrence?
In this way, everytime when the child wants to do something will think of the right/wrong and what are the consequences.