Files
2012-02-21 01:15:00 -05:00

1 line
1.7 KiB
JSON

[{"user_id": 25024, "stars": [], "topic_id": 20224, "date_created": 1303165144.1528299, "message": "Working on a Rails app, I'm sending up prerendered markup and then enhancing it with JS. I'm using Backbone, so I'm usually embedding an identifier like data-model_id in the relevant element and tying it to a Backbone model, then wrapping the functionality in a view. Sometimes I wonder whether I'd be better off just jamming the information in the markup and generating the model from it.", "group_id": 160, "id": 732429}, {"user_id": 25851, "stars": [], "topic_id": 20224, "date_created": 1303168136.120203, "message": "I just read about Spine.js today, an MVC framework similar to Backbone. They have an interesting take on handling encoding and binding directly to DOM elements.", "group_id": 160, "id": 732946}, {"user_id": 3795, "stars": [], "topic_id": 20224, "date_created": 1303502290.6616681, "message": "@n_time I don't pre-render markup in Rails, I bootstrap a JSON object in and let backbone do its thing. Just need to emphasize speed in rendering templates.", "group_id": 160, "id": 784417}, {"user_id": 30768, "stars": [], "topic_id": 20224, "date_created": 1303517444.822557, "message": "moo", "group_id": 160, "id": 786237}, {"user_id": 11179, "stars": [], "topic_id": 20224, "date_created": 1303560876.230922, "message": "With large sets of data I avoid letting the server process HTML as much as possible, especially when dealing with XHR requests. I like to retrieve sets of JSON data and process a pre-defined HTML template section. I wrote a quick template processor for the YUI framework that has proven to be extremely fast at rendering large amounts of data. You can view my longer explanation here http://lostsyntax.net/posts/5", "group_id": 160, "id": 788635}]