Life and times of dwarf spheroidal galaxies