Recently I gave a bit.ly tech talk on writing code for production.
Writing code for "production" is a topic that covers everything beyond writing one-off things that only you know how to run. The goal of this tech talk was to cover the the questions of: Who am i writing code for? What is a sandbox? Are exceptions cool? Who handles logging? How do i design with scaling in mind?
Code mentioned: http://gist.github.com/595574