Patterns for Research in Machine Learning is a slightly formal title for some excellent hints on how to code and think about coding in pretty well any language you chose.