but it does not remedy the desire to do the unwanted behavior. If the child is old enough to understand that the violence is retaliation for a specific behavior, the child will only learn not to repeat the behavior when the parent is present.
Many an owner of a puppy has learned that swatting the animal when it is eliminating inside the house only causes it to go in the house in odd places, or when the owner is not watching. So they wind up with a pet that not only is not house-broken, but is fearful of them.
"Fully half the quotations found on the internet are either mis-attributed, or outright fabrications." - Abraham Lincoln