Just a pointer to http://yudkowsky.net/rational/bayes . The page is no defunct but an improved introduction is here: https://arbital.com/p/bayes_rule/?l=1zq
Example Tcl code at Bayesian Networks.
TR - Great link. Very explanatory and easy to follow.