The essence of skillful parenting is raising a child in a warm environment where there is frequent physical and verbal affection. It must also be an environment where (s)he is held accountable for his or her actions.
Punishment is information, it is not retribution. When you punish a child, it is telling him or her where and when a limit is set. That is its sole function.