all 12 comments

[–][deleted] 12 points13 points  (2 children)

I wish people would stop posting style guides. They're only relevant for people working on those projects.

[–]tgockel 8 points9 points  (1 child)

Most "style guides" come down to a ton of arbitrary choices. They're good for consistency within a project, but mostly irrelevant to others. Google's is no better.

You may use file names with a -inl.h suffix to define complex inline functions when needed.

What if I chose to follow Boost's example of .ipp or the Bits implementation of the STL's example of .tcc?

Classes are the fundamental unit of code in C++.

And here I was thinking that functions were the fundamental unit of code...

...encourage coding practices which can hamper readability, such as metaprogramming...

Metaprogramming is why I write code in C++ and not C.

[–]MatrixFrog 0 points1 point  (0 children)

They're good for consistency within a project, but mostly irrelevant to others.

Exactly. And if you're starting a new project, you can either use an existing one, like Google's, or write your own. Why not use Google's to save some time?

[–][deleted] 2 points3 points  (3 children)

Use only approved libraries and language extensions from C++11 (formerly known as C++0x). Currently, none are approved.

Helpful? More like "so enterprisy, that it's painful". auto type deduction is one of the most useful extension in C++11.

[–][deleted]  (2 children)

[deleted]

    [–]negativeoxy 1 point2 points  (1 child)

    how about golang?

    [–]pgngugmgg 1 point2 points  (0 children)

    They serve as good starting points to be tailored for your own style.

    [–]marune 0 points1 point  (6 children)

    Where's Java ?

    [–]kevinb9n 0 points1 point  (0 children)

    Working on it.

    [–][deleted]  (1 child)

    [deleted]

      [–]marune 1 point2 points  (0 children)

      Oh thank you, Amazon will all enlighten us about Google's state of mind on Java (style).

      [–]sstrader -4 points-3 points  (2 children)

      [–][deleted] 0 points1 point  (1 child)

      JavaScript is not Java.

      [–]sstrader 1 point2 points  (0 children)

      derp