That’s how you train a dog.
Never took a stick or anything, other than my hand, to my dog.
My dog is 12 years old next month.
Haven’t had to “spank” her in 11 years.
Like with kids, you train them early, you avoid problems later.
And if your dog can be trained the same way, all the better.
I wouldn’t train a dog like that unless I wanted a biter.