MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/javascript/comments/30hyan/airbnb_javascript_style_guide_a_mostly_reasonable/cpt942u/?context=9999
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 :) 19 u/Asmor Mar 27 '15 Also, using spaces for indentation instead of tabs.You can have my \t when you pry it out of my cold, dead hands. 1 u/spacejack2114 Mar 27 '15 Yeah, using tabs would make the whole 2 vs 4 vs 8 or whatever debate moot. Formatting or aligning code with spaces is a fool's errand IMO. 0 u/Asmor Mar 27 '15 Actually, aligning with tabs is a fool's errand, and that's the whole reason this entire debate exists in the first place.Indent with tabs, align with spaces, and then everyone can adjust their tab width to whatever they're most comfortable with. 0 u/spacejack2114 Mar 28 '15 I mean aligning at all is a fool's errand, obviously it's not practical to align with tabs. But to abandon the flexibility of tabs for spaces just so you can align multi-line concatenated strings or whatever is foolish.
38
Yes - they suggest a tab indent of 2 spaces instead of the obviously-correct value of 4. Hence, mostly reasonable :)
19 u/Asmor Mar 27 '15 Also, using spaces for indentation instead of tabs.You can have my \t when you pry it out of my cold, dead hands. 1 u/spacejack2114 Mar 27 '15 Yeah, using tabs would make the whole 2 vs 4 vs 8 or whatever debate moot. Formatting or aligning code with spaces is a fool's errand IMO. 0 u/Asmor Mar 27 '15 Actually, aligning with tabs is a fool's errand, and that's the whole reason this entire debate exists in the first place.Indent with tabs, align with spaces, and then everyone can adjust their tab width to whatever they're most comfortable with. 0 u/spacejack2114 Mar 28 '15 I mean aligning at all is a fool's errand, obviously it's not practical to align with tabs. But to abandon the flexibility of tabs for spaces just so you can align multi-line concatenated strings or whatever is foolish.
19
Also, using spaces for indentation instead of tabs.
You can have my \t when you pry it out of my cold, dead hands.
1 u/spacejack2114 Mar 27 '15 Yeah, using tabs would make the whole 2 vs 4 vs 8 or whatever debate moot. Formatting or aligning code with spaces is a fool's errand IMO. 0 u/Asmor Mar 27 '15 Actually, aligning with tabs is a fool's errand, and that's the whole reason this entire debate exists in the first place.Indent with tabs, align with spaces, and then everyone can adjust their tab width to whatever they're most comfortable with. 0 u/spacejack2114 Mar 28 '15 I mean aligning at all is a fool's errand, obviously it's not practical to align with tabs. But to abandon the flexibility of tabs for spaces just so you can align multi-line concatenated strings or whatever is foolish.
1
Yeah, using tabs would make the whole 2 vs 4 vs 8 or whatever debate moot. Formatting or aligning code with spaces is a fool's errand IMO.
0 u/Asmor Mar 27 '15 Actually, aligning with tabs is a fool's errand, and that's the whole reason this entire debate exists in the first place.Indent with tabs, align with spaces, and then everyone can adjust their tab width to whatever they're most comfortable with. 0 u/spacejack2114 Mar 28 '15 I mean aligning at all is a fool's errand, obviously it's not practical to align with tabs. But to abandon the flexibility of tabs for spaces just so you can align multi-line concatenated strings or whatever is foolish.
0
Actually, aligning with tabs is a fool's errand, and that's the whole reason this entire debate exists in the first place.
Indent with tabs, align with spaces, and then everyone can adjust their tab width to whatever they're most comfortable with.
0 u/spacejack2114 Mar 28 '15 I mean aligning at all is a fool's errand, obviously it's not practical to align with tabs. But to abandon the flexibility of tabs for spaces just so you can align multi-line concatenated strings or whatever is foolish.
I mean aligning at all is a fool's errand, obviously it's not practical to align with tabs. But to abandon the flexibility of tabs for spaces just so you can align multi-line concatenated strings or whatever is foolish.
3
u/brotherwayne Mar 27 '15
Mostly?