3 ms·
Well, yes, it's hypocritical. But that's from a different team. You don't need to look further than the styleguide to find contradictions: it's advising to omit
by scrollaway 10y ago
Well, yes, it's hypocritical. But that's from a different team. You don't need to look further than the styleguide to find contradictions: it's advising to omit optional tags in order to "save bytes", then it's advising to indent with spaces instead of tabs.
shrugs should just let minifiers do the job.
- ahochhaus 10y agoGoogle's standard template language (soy / closure-templates) does mininfy whitespace by default [1]. However, it does not omit optional tags. I think this is why the style guide is written as it is. Still, I agree that both types of optimization / minification should be done by the tooling layer. [1] https://developers.google.com/closure/templates/docs/concepts#linejoining https://developers.google.com/closure/templates/docs/concept...
- jjgomo33 10y agoIt doesn't advise only for saving bytes, but also for scannability, which is greatly enhanced following that advise.