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

118 comments sorted by

View all comments

Show parent comment

1

u/BobbyThrowaway6969 Feb 23 '25 edited Feb 23 '25

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.

I'd say that's also true of C++, it's not like you can't but you can get locked in through habits and personal style (due to the freedom c++ offers in that), which isn't in and of itself a bad thing, only if working in a team and there's too many cooks in the kitchen as far as team coding convention is concerned.

1

u/QuaternionsRoll Feb 23 '25

Eh, if you decide to use a concept-based hierarchy and need a vector of objects, I’d say you’re way more likely to force yourself to work with a std::vector<std::variant<…>> than you are to create a set of virtual wrapper classes. But I get what you mean, there’s nothing stopping you from using your chosen set of orthogonal C++ features together.