The Analysis Of Stellar Populations In The Milky Way And Beyond