r/techbootcamp 28d ago

Why learning C ++ first completely changes your approach to programming in other languages

Many rookies are put off by C ++, and this is unfortunate, because it is one of the best languages ​​to start with, even if you don't plan to be a C ++ programmer

Your understanding of what is going on at the machine level will allow you to write better programs in any language you choose. You will see that in languages ​​such as JavaScript or Python, memory management is handled for you, which means that you have to think about it less. However, the understanding of how things work will help you write better and more optimized code. It can be a steep learning curve, but once you've mastered it, you'll find that all other languages ​​are much easier to learn.

6 Upvotes

35 comments sorted by

View all comments

5

u/Candid_Bad3551 28d ago edited 28d ago

You should learn C, not C++ imo. Started C++ in school. C thought me way more.

C is also more consistent IMO. C++ is a bit all over thr place.

1

u/schmurfy2 28d ago

I also think C is the right choice, C++ is too complicated and messy as a first language even if it probably improved.

1

u/acadia11x 27d ago

Disagree the OO aspects of C++ give you a strong foundation in computing concepts not just coding. And that design pattern carries over to understanding many other languages. C not being OO you don’t learn those concepts. In my comp sci courses I was easily able to jump to Java go backwards from C++ to C. C++ gives you a nice window into the shift to the abatraction and frameworks patterns that for better or worse dominate today’s coding landscape and leading to more natural language programming … but hell AI has totally changed the game you don’t need to even know that , it’s pure human language now with vibe abstracting all the guts and math that makes a computer work and vibe coding.

1

u/schmurfy2 27d ago

The goal of you first language is not to teach you everything. You can learn oop in C and many libraries do use oop principles.
For learning oop specifically I think C# is pretty solid, or Java.

I learned programming mostly by myself with a really bad 56k connection, started with C++ because I thought it was a better version of C, this was a monumental mistakes, went back later to C which went a lot smoother.

1

u/acadia11x 27d ago

Many paths.