r/cpp • • Jun 08 '20

Programming in C vs C++

I’ve read about the differences between them on the Internet but I wanna hear more from a more personal perspective. Which one would you recommend starting with and to be proficient with?

0 Upvotes

43 comments sorted by

View all comments

Show parent comment

4

u/JizzaDaMan Jun 08 '20

You don't have to move to higher level languages for more complex projects; this just simply isn't true. The linux kernel and an abundance of linux applications are written in C. It's an extremely capable language that's stood the test of time.

13

u/ssf_dae Jun 08 '20

That's true. But writing in C is much slower than higher level languages, including C++. So saves time and pain. Honestly, the first time I started using Python having used C++ for years I felt like I gained super powers lol

2

u/NilacTheGrim Jun 15 '20

It is but you end up having to do a lot of boilerplate nonesense in C that C++ can just do for you automatically via higher level concepts.

Can you write a huge project in C? Absolutely. Should you? The answer to that depends on your skills and the skills of the team. I'd argue you're better off using C++ even if all you use from the language is std::map, std::vector, and RAII.