Re:Ask HN: C vs C++
by skwiddor on Tuesday May 26, 2009 @04:13PM
(#627423)
C and C++ are two languages that share a base syntax. They are used in different problem domains. To randomly pick one for you to learn now is not a question we can answer. Your friend's reasoning isn't sound.
[ Parent
| on HN ]
I have to agree with this, C++ isn't error ridden, maybe you friend has run in to some bad C++ code. (If this is true, for example Adobe Products should be failing miserably, their mostly C++).
I would say learn both, once you learn one it's not far off the learn the other. Knowing straight C ways including manual memory management, and learning C++ along with STL/Boost is a powerful combination.
C has a huge number of libraries already out there to do everything and anything. C++ has STL/boost which makes life very easy by giving your a lot of high level algorithms at your fingertips. Now wrap your C libraries in classes and use them in mix with STL/Boost. Now that's a powerful combination, best of both worlds.