Hacker News new | ask | show | jobs
by vamega 1901 days ago
Do you have any pointers to information as to why it’s considered the Google style guide is considered to be a bad thing?
3 comments

It's the style guide for Google's specific environment. If you are not Google, much of it is likely irrelevant.

For example, the style guide says that C++ exceptions are the way to go...except that by the time the guide was written there was already too much existing code that wasn't exception safe. Therefore the guide says that regretfully, exceptions cannot be used.

Edit: clarification

And this is why the guide is "bad" - you simply can't avoid dealing with exceptions in C++ code, unless you also forgo the Standard Library, use weird and unreliable methods to detect constructor failures, and a bevy of other problems.
Many of the rules that are considered best practices in Tour of C++ or C++ Core Guidelines are no go for Google.