r/javascript • • Apr 01 '18

Google publishes a JavaScript style guide. Here are some key lessons.

https://medium.freecodecamp.org/google-publishes-a-javascript-style-guide-here-are-some-key-lessons-1810b8ad050b
714 Upvotes

317 comments sorted by

View all comments

34

u/seands Apr 01 '18

What do you guys think about the spaces over tabs? For me, I tend to make more mental mistakes and spacing errors with 2 spaces. Tabs make everything clearer to me.

5

u/Redtitwhore Apr 01 '18

The IDE should handle indentation. What a stupid thing to debate.

1

u/seands Apr 01 '18

Why is it dumb?

3

u/ssjskipp Apr 02 '18

Because your project so have an .editorconfig file which is widely supported, and most ide have a setting for whitespace width, making the problem moot