News for hackers. Stuff that matters.
Re:Airbnb JavaScript Style Guide by clintonc on Friday July 03, 2015 @01:19AM (#9823656)
My rationale for single quotes is also that JSON chose for you -- if you have JSON-formatted strings in your javascript and you use single quotes for your strings, you don't have to escape the double quotes.
Re:Airbnb JavaScript Style Guide by joepie91_ on Friday July 03, 2015 @06:51AM (#9824719)
I'd find it very worrying that you have JSON-formatted strings in JS code. Why would you do that, when there's also a native representation?
Re:Airbnb JavaScript Style Guide by phpnode on Friday July 03, 2015 @06:33AM (#9824667)
Do you do that more or less frequently than writing strings with apostrophes?