This is a usefull technique and I've used it several times myself, but hammering a tap is never a good idea. Far better to use a vice and squeeze the nut on gently. I've got a couple of nuts with square holes filed in them for tapping awkward things....
Cheers,
Chaz