Proverbs: Family Values

"Whoso curseth his father or his mother, his lamp shall be put out in
obscure darkness."
What the hell does that mean? Is this just a restatement of Exodus 21:17?
("He that curseth his father, or his mother, shall surely be put to death.") 20:20

Beating your children will make them less foolish. Have you beaten your
child today? 22:15

Beat your children hard and often. Don't worry about hurting them. You
may break a few bones and cause some brain damage, but it isn't going to
kill them. And even if they do die, they'll be better off. They'll thank
you in heaven for beating the hell out of them. 23:13-14