Punishment works best when it is
Immediate, certain and unavoidable
Delayed so the person being punished has a chance to reflect on the behavior
Never works to curb behavior and should be avoided at all costs
Uncertain, so the person being punished knows that there is a risk always
looming out there that they could be punished