MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/javascript/comments/30hyan/airbnb_javascript_style_guide_a_mostly_reasonable/cpslhn5/?context=3
r/javascript • u/mrkipling • Mar 27 '15
158 comments sorted by
View all comments
3
Mostly?
38 u/mrkipling Mar 27 '15 Yes - they suggest a tab indent of 2 spaces instead of the obviously-correct value of 4. Hence, mostly reasonable :) 2 u/DaemonXI Mar 27 '15 Normally I like four spaces, but JavaScript is so heavily nested with callbacks that I think using two spaces actually makes the code more readable. 3 u/mrkipling Mar 27 '15 All the more reason to use four spaces, so you don't indent too heavily. Also, ES6 promises.I do see your point though.
38
Yes - they suggest a tab indent of 2 spaces instead of the obviously-correct value of 4. Hence, mostly reasonable :)
2 u/DaemonXI Mar 27 '15 Normally I like four spaces, but JavaScript is so heavily nested with callbacks that I think using two spaces actually makes the code more readable. 3 u/mrkipling Mar 27 '15 All the more reason to use four spaces, so you don't indent too heavily. Also, ES6 promises.I do see your point though.
2
Normally I like four spaces, but JavaScript is so heavily nested with callbacks that I think using two spaces actually makes the code more readable.
3 u/mrkipling Mar 27 '15 All the more reason to use four spaces, so you don't indent too heavily. Also, ES6 promises.I do see your point though.
All the more reason to use four spaces, so you don't indent too heavily. Also, ES6 promises.
I do see your point though.
3
u/brotherwayne Mar 27 '15
Mostly?