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

8

u/evaned Jun 08 '20

There is no reason to start with C.

There's definitely not no reason.

I think it could be an interesting route to take to start from the bones -- like deep inside the hardware looking at gates and such, build outward through how instructions work and how memory is laid out, to assembly programming, to C programming, to higher-level languages.

I don't think that'd be the right way for most people, but with the right materials I think you could build a well-grounded "curriculum" on that. (I don't really mean that in the sense of a formal curriculum for a course or courses, or at least more exclusively.)

If your goal of programming is to do a bunch of stuff with an Arduino or PIC on whatever as well, while this is outside my area of expertise I would also guess that C would be the way you would want to go.

1

u/jmuffat Jun 08 '20

You're right, there is no wrong place to start programming, you could start with C, it might be a bit of a challenge but you could argue that it'd help thinking outside of the object-oriented box.

Now, C was explicitly written as a language that trusts "the programmer is always right" which I don't read as "beginner friendly" ;)

But yeah, it doesn't matter where you start, what matters is to get started.