Thanks for posting this, very much appreciated.
Are there any tools available which allow you to live code in such a way?
I did a quick search and found this - http://stackoverflow.com/questions/9448215/tools-to-support-...
It seems quite out of date though.