Book recommendation: agent based modeling?
One book that comes to mind is "Economic Dynamics" by John Stachurski found here.

This book discusses programming methods that are applied to economics. All of its accompanying code is kept on this github repository.