Spankings aren't an answer to ALL things. And one size spanking doesn't fit all. It takes love and patience and wisdom in disciplining a child.
As a child gets older, they learn that just cause they’re crabby or cold or hungry, its no reason to act out.
But while they are still too young to control crabbiness from physical needs, they should not be punished for it. That is a primitive way of thinking, akin to punishing a baby for crying. At its extreme, that way of thinking leads to child abuse.