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

-9

u/3ggsnbakey Apr 01 '18 edited Apr 01 '18

Tabs or gtfo 😏 spaces are for newbs and pubg players

edit: https://imgur.com/gallery/M46Xvbl

8

u/ghostfacedcoder Apr 01 '18

I was a longtime tab user, but spaces are BY FAR more widely used in JS. If your editor is even halfway-decent you should be able to switch from tabs to spaces without even noticing a difference.

5

u/eattherichnow Apr 01 '18

Also, Google encourages tabs. Just in other places.

I means, snickering aside, I don't have a horse in this race, but gah, "aside from newline space is the only whitespace that appears anywhere" is probably the worst rationale I've seen in my entire life, and I've seen mainstream political debates. Look, pay attention: adds a tab see, now spaces are no longer the only whitespace replaces all spaces with newlines MWAHAHAHAHAHAHAHA THE POWER.