Advances in extragalactic astronomy have prompted the development of increasingly realistic models which aim to describe the formation and evolution of galaxies. We review the philosophy behind one such technique, called semi-analytic modelling, and explain the relation between this approach and direct simulations of gas dynamics. Finally, we present model predictions for the evolution of the stellar mass of galaxies in a universe in which structure formation is hierarchical.