Yeah, letting your dog bark like that is just horrible and rude, especially if you live in a densely populated area. Granted, nuisance barking can be difficult to correct if you've let the behavior get ingrained, one of the reasons it might be better to start with a pup and then just correct barking as soon as he starts doing it. Even if you do have an older dog, shelter dog, etc., though, barking can usually be trained. If not, the electric bark collars, used properly, can be a workable solution. Letting your dog yap and yap for hours in the middle of the night isn't, and the backlash just makes life harder for all dog owners. Sigh.
Re: Untrained dogs