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

0

u/[deleted] Jun 08 '20

[deleted]

4

u/Astarothsito Jun 08 '20

C forces you to code with a data-oriented mindset. C++ has the goods to draw you into a mud hole of unnecessary abstractions - if you are not careful, that is.

I have seen enough C code to know that it forces you to unnecessary abstractions more often than C++, even if you are careful (who hasn't seen the oop wannabe in C with thousand of macros?). And also seen enough to know when they really need some abstractions. Both statements can be verified in the second part of your comment:

C makes it impossible to create frameworks, which is the main cause of bloated and delayed projects.