r/javascript • • Mar 27 '15

Airbnb JavaScript Style Guide - A mostly reasonable approach to JavaScript

https://github.com/airbnb/javascript/blob/master/README.md
315 Upvotes

158 comments sorted by

View all comments

Show parent comments

1

u/lolmeansilaughed Mar 28 '15

My point was that if you use names to dictate whitespace, your code will get screwed up when you refactor. Even if it's by hand, you'll spend a lot of unnecessary time on the spacebar or backspace.

The long function name with two short args is a completely typical example. The function name was long because it illustrates the problem, the function names were short because I'm lazy and on mobile.

Your indentation rules are actually dictating your style choices

Indentation rules are style choices.