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

1 line
11 KiB
JSON

[{"user_id": 25019, "stars": [], "topic_id": 15140, "date_created": 1301023820.7635059, "message": "I definitely prefer without, having used both styles.", "group_id": 160, "id": 434884}, {"user_id": 14029, "stars": [{"date_created": 1301053057.0546939, "user_id": 1243}, {"date_created": 1301330060.318517, "user_id": 15672}, {"date_created": 1301474608.345268, "user_id": 23569}], "topic_id": 15140, "date_created": 1301027838.711617, "message": "If http://www.jslint.com/ could talk, it would say, \"Use semicolons or you'll run into trouble.\"", "group_id": 160, "id": 435608}, {"user_id": 15929, "stars": [{"date_created": 1301587793.3866961, "user_id": 21209}], "topic_id": 15140, "date_created": 1301028644.1289871, "message": "http://bonsaiden.github.com/JavaScript-Garden/#core.semicolon ;", "group_id": 160, "id": 435729}, {"user_id": 23928, "stars": [], "topic_id": 15140, "date_created": 1301032827.128335, "message": "With for me. There is something I like about terminating my strings.", "group_id": 160, "id": 436168}, {"user_id": 25019, "stars": [], "topic_id": 15140, "date_created": 1301032109.039129, "message": "I don't agree with either of those guys. They promote semicolons to people \"just in case\" which isn't necessary if you know what you're doing.", "group_id": 160, "id": 436118}, {"user_id": 25019, "stars": [], "topic_id": 15140, "date_created": 1301033837.50986, "message": "http://codeyeti.com/posts/semicolons-in-javascript/", "group_id": 160, "id": 436235}, {"user_id": 1944, "stars": [{"date_created": 1301053070.5114141, "user_id": 1243}, {"date_created": 1301330074.9724391, "user_id": 15672}], "topic_id": 15140, "date_created": 1301033622.611722, "message": "http://lucumr.pocoo.org/2011/2/6/automatic-semicolon-insertion/", "group_id": 160, "id": 436219}, {"user_id": 12817, "stars": [{"date_created": 1301053084.8597901, "user_id": 1243}], "topic_id": 15140, "date_created": 1301035184.1860459, "message": "@dxgriffiths I don't see the advantage of having to think about which statements do or don't require semicolons vs. just putting them on every line anyway.", "group_id": 160, "id": 436320}, {"user_id": 1944, "stars": [{"date_created": 1301053090.7662101, "user_id": 1243}, {"date_created": 1301121899.8105879, "user_id": 4935}], "topic_id": 15140, "date_created": 1301035851.7322121, "message": "Either accept that JS is a little syntactically verbose, and write unambiguous quality code including semicolons; or, use some preprocessor such as CoffeeScript.", "group_id": 160, "id": 436352}, {"user_id": 25019, "stars": [], "topic_id": 15140, "date_created": 1301036030.032284, "message": "Yeah I wrote my own preprocessor that handles the edge cases, it works well. It's not really syntactically verbose though, if you look at Closure Compiler output it actually removes semicolons wherever they're not needed.", "group_id": 160, "id": 436360}, {"user_id": 25019, "stars": [], "topic_id": 15140, "date_created": 1301036068.463016, "message": "So putting them in everywhere just for the sake of it, just so a minifier can remove them, seems weirdly dogmatic to me.", "group_id": 160, "id": 436363}, {"user_id": 7912, "stars": [], "topic_id": 15140, "date_created": 1301037063.6449959, "message": "With, I've been ruined for life by C/C++/Java/C#", "group_id": 160, "id": 436431}, {"user_id": 14029, "stars": [{"date_created": 1301053126.168633, "user_id": 1243}], "topic_id": 15140, "date_created": 1301038026.643894, "message": "I'm primarily a C++ programmer, but do most of my work right now in Python. I don't use semicolons in Python, because it works. JavaScript, however, gets really finicky, so I stick with Douglas Crockford's advice of using them. I end up getting more work done and blaming my tools a lot less.", "group_id": 160, "id": 436486}, {"user_id": 1944, "stars": [], "topic_id": 15140, "date_created": 1301037649.162492, "message": "@dxgriffiths Did you see my link? Lacking semicolons can lead to unexpected results.", "group_id": 160, "id": 436473}, {"user_id": 9262, "stars": [], "topic_id": 15140, "date_created": 1301041716.246217, "message": "Use coffeescript [ http://jashkenas.github.com/coffee-script/ ] it will put semicolons for you.", "group_id": 160, "id": 436775}, {"user_id": 1548, "stars": [], "topic_id": 15140, "date_created": 1301064388.2605529, "message": "Sometimes I wish it was without, especially when I'm switching between JavaScript and Ruby and it takes my brain a few minutes to remember whether I should be using them or not.", "group_id": 160, "id": 438905}, {"user_id": 1548, "stars": [], "topic_id": 15140, "date_created": 1301064335.9231379, "message": "@markbiegel Yeah, I know what you mean.", "group_id": 160, "id": 438900}, {"user_id": 12020, "stars": [], "topic_id": 15140, "date_created": 1301074950.826524, "message": "@Owen_Inspirado That\u2019s a long article to say basically what I said above: \u201cThe main thing you have to remember when you\u2019re not using semicolons is never to start a line with an opening parenthesis or bracket.\u201d", "group_id": 160, "id": 440651}, {"user_id": 14029, "stars": [], "topic_id": 15140, "date_created": 1301074631.5778241, "message": "@dbrock So do you just change your style where the automatic semicolon insertion would break what you want? I guess that could work, although it makes me feel dirty. :P", "group_id": 160, "id": 440579}, {"user_id": 12020, "stars": [], "topic_id": 15140, "date_created": 1301073633.3480861, "message": "Definitely without\u2014it\u2019s just clutter. You have to learn the automatic semicolon insertion rules anyway. (For example, \u201creturn <LF> <some-long-expression>;\u201d isn\u2019t going to work, even though you put in the optional semicolon.) The main thing you have to remember when you\u2019re not using semicolons is never to start a line with an opening parenthesis or bracket.", "group_id": 160, "id": 440334}, {"user_id": 12020, "stars": [], "topic_id": 15140, "date_created": 1301073735.1669669, "message": "@dag Or accept the fact that you have to learn the rules for automatic semicolon insertion. It is, after all, a fundamental property of the language you are using.", "group_id": 160, "id": 440360}, {"user_id": 14029, "stars": [], "topic_id": 15140, "date_created": 1301074790.8401861, "message": "@dbrock The link @dag posted above shows a few examples where you'd need to restructure your code, or add semicolons manually: http://lucumr.pocoo.org/2011/2/6/automatic-semicolon-insertion/", "group_id": 160, "id": 440617}, {"user_id": 14029, "stars": [], "topic_id": 15140, "date_created": 1301075252.7803581, "message": "@dbrock lol Touche.", "group_id": 160, "id": 440692}, {"user_id": 12020, "stars": [], "topic_id": 15140, "date_created": 1301074666.178669, "message": "@Owen_Inspirado What do you mean? I never use semicolons.", "group_id": 160, "id": 440584}, {"user_id": 12020, "stars": [], "topic_id": 15140, "date_created": 1301075213.9478011, "message": "@Owen_Inspirado Haha, as I said, don\u2019t start a line with an opening parenthesis.", "group_id": 160, "id": 440687}, {"user_id": 12020, "stars": [], "topic_id": 15140, "date_created": 1301075161.1252079, "message": "@Owen_Inspirado And I have no problem with never starting a line with an opening parenthesis or square bracket. One thing you may find handy is to define a function block(callback) { return callback() }, so that you can say \u201cblock(function () { ... })\u201d instead of \u201c(function () { ... })()\u201d, which I find is an improvement anyway\u2014that last \u201c()\u201d is very easy to forget, and very easy to miss because it\u2019s a detail at the END of the expression.", "group_id": 160, "id": 440680}, {"user_id": 14029, "stars": [], "topic_id": 15140, "date_created": 1301075105.0609391, "message": "@dbrock That's a common case, but any line that is not broken by the next line will not have a semicolon inserted. Contrived example:\na = b + c\n(d + e).print()", "group_id": 160, "id": 440673}, {"user_id": 3795, "stars": [], "topic_id": 15140, "date_created": 1301107927.44765, "message": "@dxgriffiths Someone who didn't realize semicolons were optional until recently isn't a viable source", "group_id": 160, "id": 444300}, {"user_id": 3795, "stars": [], "topic_id": 15140, "date_created": 1301108375.6132879, "message": "Pardon?", "group_id": 160, "id": 444335}, {"user_id": 3795, "stars": [{"date_created": 1301706869.7951109, "user_id": 14578}], "topic_id": 15140, "date_created": 1301108152.920609, "message": "It's plain lazy to not terminate your statements. Javascript \"developers\" are notorious for being slouches as it is. Add the terminating symbol, save your interpreter an operation, and yourself some time debugging that mistake you made out of sheer laziness.", "group_id": 160, "id": 444309}, {"user_id": 12020, "stars": [], "topic_id": 15140, "date_created": 1301108284.3140221, "message": "@tbeseda Obvious troll is obvious?", "group_id": 160, "id": 444317}, {"user_id": 12020, "stars": [{"date_created": 1301143877.965359, "user_id": 8470}], "topic_id": 15140, "date_created": 1301109729.412756, "message": "@tbeseda It\u2019s not a matter of laziness, it\u2019s a matter of automatic semicolon insertion being a fundamental part of the language that you can\u2019t just pretend doesn\u2019t exist (even if you use semicolons, ASI will still cause you problems if you don\u2019t understand it) .", "group_id": 160, "id": 444404}, {"user_id": 4935, "stars": [], "topic_id": 15140, "date_created": 1301122004.758728, "message": "agree 100% with @dag", "group_id": 160, "id": 445344}, {"user_id": 12933, "stars": [], "topic_id": 15140, "date_created": 1301135426.677448, "message": "in the past I wrote code without \";\" but now I always write js with \";\". I also prepend $ to every variable name</joke>. (psst.: I really do that for some special variables that need special attention :P).", "group_id": 160, "id": 445856}, {"user_id": 23322, "stars": [], "topic_id": 15140, "date_created": 1301151729.362956, "message": "With semicolons. It's easier for context switching (from languages that do require them) to just put them, even if they aren't \"necessary.\"", "group_id": 160, "id": 446249}, {"user_id": 13767, "stars": [], "topic_id": 15140, "date_created": 1301155062.5673361, "message": "PHP ruined me into using semicolons in both JavaScript and Python.", "group_id": 160, "id": 446347}, {"user_id": 15929, "stars": [], "topic_id": 15140, "date_created": 1301218132.2824039, "message": "@jeffl8n agreed. plus it'll be easier for other (non js) dev to jump in, read the code and have input rather than having their brain to compute twice with no semicolon.", "group_id": 160, "id": 450227}, {"user_id": 22441, "stars": [], "topic_id": 15140, "date_created": 1301247642.0757301, "message": "I'd prefer without, but as a Javascript noob I'd rather not get hit with unexpected semicolon insertion.", "group_id": 160, "id": 452194}, {"user_id": 3, "stars": [], "topic_id": 15140, "date_created": 1301407473.4670091, "message": "Haven't used them in 3+ years", "group_id": 160, "id": 469505}, {"user_id": 3, "stars": [], "topic_id": 15140, "date_created": 1301407513.530529, "message": "Ignore the FUD and just pick the style you prefer", "group_id": 160, "id": 469512}, {"user_id": 3, "stars": [], "topic_id": 15140, "date_created": 1301407493.1076341, "message": "GitHub is semi-colon free (mostly)", "group_id": 160, "id": 469509}, {"user_id": 3, "stars": [], "topic_id": 15140, "date_created": 1301407480.188988, "message": "Never had problems", "group_id": 160, "id": 469506}]