In most of the zombie movies, all the characters have to do is survive a night. The original Night of the Living Dead had characters trapped in a farmhouse overnight, but by morning, the local townspeople had rallied and got their guns and had the situation under control.
In the 1990 remake of the Night of the Living Dead, the female lead remarks that they are so slow, they could just walk out of the farmhouse past them. They decide to stay, but are killed off, until the woman is alone. And she walks outside with a shotgun, and just walks a little bit faster than the zombies, and escapes.
Yeah hiding in a house is setting oneself up for a death trap. The best bet is to keep moving, like one tries to do when trying to avoid an Obama volunteer. If you think about it, the military could coral all the zombies like cattle in one place then just napalm the crap out of them. Probably actual cowboys could do it even. I live that movie 28 days because that is a more believable situation where a virus causes people to go insane and the “zombies” run at full speed.
Things are different now though
Too much gun control