Are you saying hitting a child is good idea?
It's not so much a matter of being a good idea. Its a matter of common sense. Children, if not reeled in with the rod of reality from time to time, can turn into monsters without corrective medicine. No rational or civilised person, ever looks forward to spanking thier children. Times do present themselves, however, when it becomes necessary to administer discipline in the form of an occasional course correction with children. Correction depends on the child as well. It's not a beach blanket issue with all of them. The rod of correction needs to be used more than others for differing situations. No one case is the same. Correction comes at different levels. At a certain point, physical correction shouldn't even come into the picture. You can reel them in only upto a certain point. After a child has reached a level and age of understanding, physical punishment becomes no longer of any benefit.
Using corrective measures may come in the form of restrictions from certain activities. Assignment of extra chores or whatever you may deem necessary to get that childs attention. They are going to grow beyond your ability to control, in your own environment, if left to the:"Now Bobby, you know what you did was wrong", speech all the time.
Words do not always, readily get that childs attention. I'm not here to be your friend, pal, buddy or whoever some of the kids of the day seem to take to thier parents for. We've lost sight of where our priorities lie when it comes to raising our kids. To not look for them with discipline, as described in scripture, is to pre-program them for a life without walls, without rules, without boundaries, without boders. The skies the limit. They will be well on thier way to possibly living thier days, selling drugs, selling sex, using drugs and preparing themselves for prison and or death.