Reply to thread

C++ is among the worst first languages to learn. In terms of bad choices, it's right up there with VisualBasic. If you want to code close to metal, learn C first. Then carefully select a subset of C++ that works for you.

 

...

 

Google uses a subset of C++. They don't use things like automatic ref counted pointers or multiple inheritance.

 

You can basically think of Google's C++ subset as C plus a bit of sugar:

  • The ability to add methods to structs
  • Basic single inheritance.
  • Collection and string classes
  • Scope based resource management.


In general, this makes the code cleaner without adding much complexity.

 

...

 

http://www.quora.com/Why-did-Google-choose-C-over-C-for-most-of-its-code

http://google-styleguide.googlecode.com/svn/trunk/cppguide.xml

 

If you want to be productive and need a language that is versatile enough to span prototyping, administration, modeling, and data munging, learn Python first. You'll have a reasonable object model along with functional constructs that will help you understand a wider variety of languages in the future (eg ML, Haskell, Clojure).


Back
Top Bottom