Pruning will encourage the compact growth desired. The white blooms followed by red berries are highly ornamental. The deciduous foliage clings to the shrub until late fall. Evergreens tend to respond poorly to clipping, but there are several that can be used in formal hedges. Hemlocks make lovely hedges and can be freely clipped without worry of damaging the plant.
Boxwood is also suitable for formal hedges.
Evergreens for informal hedges include holly, rhododendron, and azalea species. These plants are available in many heights and so by carefully selecting your variety, you can eliminate a great deal of pruning. The berries and flowers on these plants are attractive bonuses to the functional aspect of an informal hedge.