4 ms·
Another point against advice like this is that you're going to be forced to use the supposedly "bad" technique when you interact with the rest of the world. Fo
by WorldWideWayne 12y ago
Another point against advice like this is that you're going to be forced to use the supposedly "bad" technique when you interact with the rest of the world.
For instance, if you want to use any of Google's Javascript libraries like their map api client, you're going to be using "new". So, now you've done a bunch of work to avoid using "new" but as soon as you step outside of your bubble, you're going to have to find a way to deal with "new" anyway. So, what's the point? Just use a good linter and be done with it.
- mattdesl 12y agoYeah, and you also have to use Google's ugly name spacing and global scope pollution instead of modern (sane) module approaches like CommonJS. Following an old-school technique just because you might see it in some legacy code doesn't seem like a great argument.