Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Perhaps in the past, but they aren't too terribly far behind C++20 and a bunch of stuff that has been added to the language over time (like stringviews) was made available much earlier via library support. I don't think I've ever heard this "C+-" joke at Google despite working in C++ here for a very long time.


I heard it quite frequently, but not from people that worked there.

I believe that there was a published style guide. My experience is years old, but I remember seeing that it was basically “C++ without objects.”

It’s a great language, and the 20 additions bring it right on par with other languages, in terms of type and memory safety.


The style guide is publicly available: https://google.github.io/styleguide/cppguide.html

I've never heard anything remotely similar to "avoid objects" here.


Yeah. If anything the Chromium codebase is bloated with uncomfortably intricate OO patterns. Google3, less so, but that's because that kind of server-stuff doesn't lend itself to the same kind of thing, maybe.

I like the Google style guide overall. I tend to use it on new projects even though I'm not there anymore, and when I get into other people's code often my first instinct is to "clean it up" into that style :-)


Well, this was back in the C++ 11 days.

No biggie. Won't get in a fight about it.

Have a great day!


It is true that the adoption C++11 was later than ideal. Since then, the C++ build and library maintainers have made a priority of not letting that happen again and have done a really really good job (IMO).


Maybe more like C++ without (most) pointers. A coupe of years ago they allowed mutable references in function arguments, so the use cases for passing pointers around were reduced even further.


That's it. Not "without objects," but without pointers. One of the things (back then) that made C++ so powerful, was direct memory access.

However, I really like style guides.

Except the Taligent one: https://root.cern.ch/TaligentDocs/TaligentOnline/DocumentRoo...


"Don't use pointers" was definitely never in the style guide.


Well ... like I said, it was a long time ago (I don't know if Google had even made their first hundred billion, yet). I suffer from CRS. You know how us old "boomers" are...

Not interested in fighting about it. I'm sure that I'm wrong. Being right buys me absolutely nothing. It's not my wheelhouse.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: