Using a shot glass is good if you are training a new barista. If your espresso machine is calibrated correctly, the shot size should be the same all the time. Your new barista can learn to tell the difference between a good and bad shot based on how much espresso ends up in the glass. Too little and they have tamped the grounds too tightly. Too much and they need to pack the grounds a little more.