http://probmods.org/ is a textbook written by Noah Goodman (author of this post & library and Prof at Stanford) that teaches about cognition using probabilistic programming. It is pretty readable but centered more on cognition than the programming aspect.