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

1 line
5.7 KiB
JSON

[{"user_id": 7376, "stars": [{"date_created": 1306465950.2126801, "user_id": 34055}, {"date_created": 1315875549.755796, "user_id": 40805}], "topic_id": 35077, "date_created": 1305261661.677269, "message": "I was fooling around tonight. I'm not sure if this is a good thing or to much Erlang is making me insane, but here it is: https://gist.github.com/969788", "group_id": 160, "id": 1035238}, {"user_id": 1516, "stars": [], "topic_id": 35077, "date_created": 1305274204.460602, "message": "post_tmpl = [\"div\", {class: \"post\"}, (post, callback) ->\n callback([\"div\", {class: \"entry-title\"},\n [\"a\", {href: post.url}, post.title]])\n callback([\"div\", {class: \"entry-summary\"}, post.summary])]", "group_id": 160, "id": 1038081}, {"user_id": 1516, "stars": [], "topic_id": 35077, "date_created": 1305273909.9244201, "message": "nice! have you tried it with CoffeeScript syntax? you don't need commas when indent inside a list and the functions become much smaller", "group_id": 160, "id": 1038003}, {"user_id": 1516, "stars": [], "topic_id": 35077, "date_created": 1305274007.2594991, "message": "[\"div\", {class: \"example\"}\n \"I am a div. \"\n [\"em\", \"My spoon is too big!\"]\n [\"a\", {href: \"http://www.youtube.com/watch?v=MuOvqeABHvQ\"}\n \" I am a banana.\"]]", "group_id": 160, "id": 1038019}, {"user_id": 1855, "stars": [], "topic_id": 35077, "date_created": 1305283284.0527201, "message": "this is rather interesting, good idea or not ;P", "group_id": 160, "id": 1039460}, {"user_id": 31125, "stars": [], "topic_id": 35077, "date_created": 1305286064.7967889, "message": "i think its less readable than html...", "group_id": 160, "id": 1039704}, {"user_id": 1548, "stars": [], "topic_id": 35077, "date_created": 1305289741.4308641, "message": "Great. But there's one teeny problem... what about tags that don't have content? It would be nice to use it for: img, input, meta and link? A simple regex should suffice to fix it.", "group_id": 160, "id": 1040322}, {"user_id": 1548, "stars": [], "topic_id": 35077, "date_created": 1305289839.8131089, "message": "Sorry, my bad. Should have read the code fully before I said that. I see you're letting the browser take care of that.", "group_id": 160, "id": 1040344}, {"user_id": 7376, "stars": [], "topic_id": 35077, "date_created": 1305291797.981447, "message": "@pjburgess Yeah, I'm not generating a string, I'm generating a DOM tree.", "group_id": 160, "id": 1040720}, {"user_id": 7376, "stars": [], "topic_id": 35077, "date_created": 1305293537.024658, "message": "@softprops Thanks for the credit, but I was definitely thinking inside someone else's box :) I've seen this kind of HTML/XML rendering in Lisp, for instance I just found this https://github.com/mmcgrana/clj-html which uses a data structure nearly exact as mine despite the fact that I was completely unaware of it.", "group_id": 160, "id": 1041165}, {"user_id": 278, "stars": [], "topic_id": 35077, "date_created": 1305293154.7374611, "message": "This is awesome. Usually when I end up doing adhoc templates I ended up doing something similar by building up an array of pieces of markup then calling .join(\"\") at the end. I'd never thought of something more formalized. Nice job on thinking outside the box!", "group_id": 160, "id": 1041064}, {"user_id": 7376, "stars": [], "topic_id": 35077, "date_created": 1305293702.791142, "message": "@sucrenoir I think I agree, I wrote a mustache version of test.html and the template is significantly more readable. https://gist.github.com/969788#file_test_mustache.html", "group_id": 160, "id": 1041184}, {"user_id": 7376, "stars": [], "topic_id": 35077, "date_created": 1305295472.619396, "message": "Here's a live version for folks that want to look at it in action without cloning the gist: http://dev.knoxpy.org/x/crazy-template/", "group_id": 160, "id": 1041624}, {"user_id": 6612, "stars": [], "topic_id": 35077, "date_created": 1306691440.114989, "message": "Nice work! I'm trying to wrap my head around different templating approaches myself. Did you know there is also a dedicated group for template engines? https://convore.com/template-engines/", "group_id": 160, "id": 1218789}, {"user_id": 7381, "stars": [], "topic_id": 35077, "date_created": 1306771193.65345, "message": "Continuing on the theme of \"Let's not concentrate on whether it's a good idea or not\" - a few more (similarly readable) implementations of the test page: https://github.com/insin/DOMBuilder/blob/master/examples/reddit_posts.html & https://github.com/insin/DOMBuilder/blob/master/examples/reddit_posts_dom.html", "group_id": 160, "id": 1228627}, {"user_id": 6612, "stars": [], "topic_id": 35077, "date_created": 1306791554.399276, "message": "@isin I really like the fact that your DOMBuilder has multiple output modes. Not sure if I like the syntax though.", "group_id": 160, "id": 1231874}, {"user_id": 7381, "stars": [], "topic_id": 35077, "date_created": 1307300132.9292469, "message": "It's an... acquired taste, certainly ;) I really ought to mod it to support/generate the list of lists structure by default and plug that into the output modes.", "group_id": 160, "id": 1294746}, {"user_id": 38254, "stars": [], "topic_id": 35077, "date_created": 1310964238.212709, "message": "Anyone recommend Selenium for testing a ExtJS ui?", "group_id": 160, "id": 1660576}, {"user_id": 27304, "stars": [], "topic_id": 35077, "date_created": 1315870129.1538751, "message": "Very interesting. I liked it.You might want to use Object.keys(head) or head.hasOwnProperty in the attribute handling part.", "group_id": 160, "id": 2112496}, {"user_id": 41744, "stars": [], "topic_id": 35077, "date_created": 1317509613.872874, "message": "Very clever. I like it, too.", "group_id": 160, "id": 2257075}]