Invia SMS: The variational theory of geodesics