r/javascript • u/bornforcode • 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
2
u/Bettina88 Apr 04 '18 edited Apr 04 '18
Honestly, when people say things like this it makes me wonder if they've ever worked on a large, distributed Javascript project.
There's code from dozens of sources, repos and libraries incorporated in every large project. You'll be editing code written by hundreds of different people.
You want to force a rigid, pointless indenting standard across hundreds of individual .js files?
Jesus, if your coders can't open a file and instantly see what the indentation (or function bracketing, or object structure) standards are and adapt to that individual .js file... then maybe get some actual coders and stop hiring interns.
This is like arguing about which end of a hard boiled egg to start on.
What we have here are Google style weenies being Google style weenies and trying to keep their jobs.