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

91

u/timeparser Apr 01 '18 edited Apr 02 '18

Misleading title.

So, if Google says it, it’s a “lesson”, the rest of us just have opinions?

I agree with most of Google’s opinions, but that doesn’t make them The Official Way of Doing Things™

1

u/eterevsky Apr 02 '18

Some of these rules are introduced not because they the ultimate “correct way”, but just to keep Google’s own code base consistent.

1

u/timeparser Apr 02 '18

I know. I was pointing out the misleading title.