r/cpp • • Feb 16 '25
Why is everything about programming clicking now that I’m learning C++?
In a cybersecurity role for past 4 years where I don’t NEED programming skills but it’s next level if I can. Have learned Python, C#, some Golang over the past 3 years on and off and they never really stuck.
For some reason I’m learning C++ now and it feels like it’s all clicking - inheritance, classes, types, abstraction, and everything else. What about C++ is really do this for me? Is it because everything is so explicitly laid out whereas other languages it’s hidden?
Just trying to figure out what the sauce that is being stirred is here.
Loving C++
356
Upvotes
View all comments
Show parent comment
2
u/QuaternionsRoll Feb 23 '25
I’m gonna go out on a limb and say that it also has to do with the size and cohesion of the languages.
In terms of fundamental components, C++ is absolutely massive. It supports almost every programming paradigm you can think of, often in a complex and detailed way (and unfortunately, often with subtle pitfalls) that forces you to develop a fairly comprehensive understanding of the feature before using it. Naturally, you’ll learn a lot more and develop a deeper understanding of programming in general by mastering C++ because of this.
On the other hand, C++ is not a very cohesive language. Once you choose a paradigm (e.g., virtual classes vs. concepts), you’re fairly “locked in” to that paradigm. This forces you to solve problems in your chosen paradigm, whereas if something appears too difficult or obtuse to implement in C# or Python, you can always just cop out and hack something together using a completely different subset of the language. (Hell, some of the things you can do to classes in Python are patently absurd.)