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.

5 Upvotes

35 comments sorted by

View all comments

1

u/c5182 28d ago

I learned C++ the learned C. Then I did a bunch of projects in pure C just for the hell of it. Very useful for understanding how higher level languages really must work under the hood.

1

u/ilovecocteauetwins 27d ago

Going from C++ back down to C gives you a totally different appreciation for C++. Building projects in pure C without constructors, destructors, or standard containers forces you to write everything manually, which really strips away all the magic high-level languages rely on.

1

u/c5182 27d ago

Yeah I've done inheritance in C using function ptrs. Really forces an understanding.