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

Show parent comments

5

u/[deleted] Apr 01 '18

Your team picks a style guide to follow, everyone follows it, your devs don't spend an ungodly amount of time arguing over pointless things like space vs tabs (see: Bikeshedding).

If you're working on your own stuff then you can do whatever makes you happy.

0

u/Bettina88 Apr 02 '18

You know this? John Mueller has already spoken ex cathedra on js styling and SEO?

If it hasn't been expressly denied, anything and everything is a ranking factor.

It's a legit concern for coders moving forwards. If Google is making a style guide there's certainly a chance it's a ranking factor now.

I hope you're right though.

3

u/[deleted] Apr 02 '18

How could it possibly be used as a ranking factor? The vast majority of JS code on the web is minified and optimized, Google wouldn't expect anything else. They promote minification as a tool to increase page load times and created one of the leading minification/optimization tools.

1

u/Bettina88 Apr 02 '18

True. But minification wouldn't affect all the guidelines.