Originally Posted by
elemental
Hub brakes do have some advantages, especially their performance in bad weather and ease of maintenance. They don't perform especially well because they can only be used as back brakes, which aren't very effective in the first place.
While coaster brakes will only work on a rear wheel, coaster brakes are only a subset of hub brakes. Disc and drum brakes are available for both front and rear wheels.