News for hackers. Stuff that matters.
Re:Airbnb JavaScript Style Guide by nixy on Friday July 03, 2015 @12:38AM (#9823502)
No, no, no, this has to go away. The insertion of spaces before ) and after ( is something I see from time to time in JS code, and it is really difficult for me to read. Three.js unfortunately uses this, and mrdoob even has his own style guide. His style guide is probably the only thing I don't like about his work.

No school I've studied or worked at teaches this style, and JS traditionally has never been written like this[1][2]. And now I see it elsewhere as well. In some Java projects, for example. Where does this come from?

There are currently no known hard facts (conclusions from studies) about which of the whitespace styles have the best readability. So let's just all stick to the most common way of doing things, shall we :)

  [1] JavaScript The Good Parts
  [2] Google JS Style Guide http://google.github.io/styleguide/javascriptguide.xml
Re:Airbnb JavaScript Style Guide by chanux on Friday July 03, 2015 @12:57AM (#9823589)
I agree. 'Cramped' there is more 'readable' to me. This is probably a matter of personal preference.
Re:Airbnb JavaScript Style Guide by Roboprog on Friday July 03, 2015 @11:38PM (#9829066)
Ah, C layout orthodoxy at its finest: shove as much crap separated only by operators without whitespace on one line as you can. (not exactly what you said, but I'm extrapolating uncharitably)

I guess you could lampoon me as COBOL orthdoxy, liking spaces between symbols, but Lisp was good at using whitespace, rather than commas, between symbols as well.