Alex Mansfield has published a very comprehensive overview of creating custom meta boxes in WordPress. It doesn’t cover every type of field, but if you aren’t using a class or other tool for building metaboxes, this will come in very handy. You may remember Alex’s previous guide to the theme customizer, too.