I mostly use a reward system. When he is good he gets attention and sometimes treats. When he is bad he is ignored, tied up or put in a room by himself. However a lot of the time when he is bad it is not his fault. Sometimes a person teaches him to do something that is bad or he does not get enough exercise and acts out because he is hyper. It does not take much to teach him bad behavior like begging for food because someone fed him food during supper the previous day. I don't punish him when it is not his fault.
When he was young he attacked us when we took him for walks. I soon figured out that the best way to deal with behavior like that was to tie him up to a tree and get out of his range. Now I find hugging him calms him down and prevents him from biting me. He still gets hyper and attacks me once in a while.
Lots of people go to far when disciplining their dog. I actually did try being physical with my dog to stop him from attacking me but it would just cause him to play rougher. While he was bruising me and ripping my clothes in his mind he was playing. He is a big dog. I taught him some different games and found ways to calm him down.