C / C++ / C#

  1. Home
  2. Computing & Technology
  3. C / C++ / C#
photo of David Bolton

David's C / C++ / C# Blog

By David Bolton, About.com Guide to C / C++ / C#

Being Stylish in C++ - The Google Way

Wednesday July 2, 2008
You might heard of a outfit called Google who run a popular search engine. They also develop a considerable amount of software for their own use and much of it is in C++. Like many software houses they have developed a style guide that provides clear instructions to C++ programmers regarding source code layout and formatting, use of functions and much much more.

I've seen Style Guides as short as one page but the Google one is much much larger. For example they mandate that casts must be the static_cast<>() and not (int) and they recommend you avoid using macros and use constants, enums and inline functions instead. I think Style Guide is a bit misleading, but calling it "The Google way to write C++ code" is a bit too long winded albeit more accurate. I'd recommend everyone learning C++ should read this and I've added a link to it in the Tools and Utilities page.

Challenge 13 results Now Published

Comments

No comments yet. Leave a Comment

Leave a Comment

Line and paragraph breaks are automatic. Some HTML allowed: <a href="" title="">, <b>, <i>, <strike>

Discuss

Community Forum

Explore C / C++ / C#

About.com Special Features

C / C++ / C#

  1. Home
  2. Computing & Technology
  3. C / C++ / C#

©2009 About.com, a part of The New York Times Company.

All rights reserved.