Apologies for off-topic, but how does one post code, or do quoted text on HN? I've seen it done here and a few other places, but haven't been able to find documentation on how.
Re:Step by step from jQuery to Backbone
by cristoperb on Monday January 28, 2013 @08:09PM
(#5131781)
"Text after a blank line that is indented by two or more spaces is reproduced verbatim. (This is intended for code.)"
My code would look more like:
Note 1: This code sample is untested, but should give a good enough idea what I am trying to do. Note 2: For extra type safety, use typescript interfaces to model data.