One general way for teachers to deal with bad behavior by young children is to use participatory techniques, so that the child understands when her behavior has been bad. One way of doing this is to get the kids to help with setting the rules that they all agree on. Then instead of directly punishing transgression, small rewards or privileges can be given for good behavior, so that the punishment is implicit and not humiliating.
One time-worn method for parents to use when their young child behaves badly is to just ignore them and don't respond. Conversely, good behavior can be responded to with encouraging and kindly words. Over a period of time, the child will understand this and stop the bad behavior. Another method is to use a "time out." With this, the parent has a designated place such as a chair, corner or playpen and if the child misbehaves, the child receives a warning that repeating the bad behavior will mean a visit to the time out zone. If it continues, the parent calmly takes the child there.
It is important for older children to see that their parents are setting appropriate behavior standards themselves. For example, it may not work if a parent lectures a child on not smoking when they smoke themselves, or to shout at them that they should stop shouting. Reasonable rules concerning times to be home, when to do homework and when to socialize should be discussed and agreed upon. If the rule is broken, the activity, which must be made clear is a privilege rather than a right, should be withdrawn for a period of time.
Children are small humans and adults are big humans. Each is at a different stage of development but basic emotions and psychology are the same. If you have an adult friend or even partner who is behaving badly, this can be punished by ignoring it and not responding, and you can react positively when the behavior changes and improves. Another punishment for a badly behaving adult is to exclude her from a circle of friends or stop contact for a period of time.