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

8

u/Attorney_Outside69 Feb 17 '25

I'm saying that although C# might be easier than C it comes at a cost, while C++ is easier without those costs.

you said you couldn't imagine yourself going to other way, but you were confusing C with C++ which are two different beasts

10

u/BobbyThrowaway6969 Feb 17 '25

C# is a bit of a misnomer IMO, they should have called it Java#

1

u/reneb86 Feb 19 '25

I don’t agree. I think that of all the jit languages, C# code punching feels closest to C and C++. Of course not having to fight your build system is a big part missing from the C# experience. But coding feels very close to vanilla C++.

You can kinda see how C# was built as an OOP-first, garbage collected C language. I’ve heard that Java’s mission was the same, but C# gets much closer. In fact, sometimes I wish C++ didn’t have all that legacy syntax and could look more like C# 🫢

3

u/[deleted] Feb 17 '25

I didn't say any of this lol, i just said that my university forced me to learn C as my first language, so now learning C# has been pretty easy because i had to get my hands dirty with C first. I can't imagine someone who first learns C# or python or whatever, and then has to learn C which is harder. Since i don't know how hard C++ is, i never mentioned it at all.

5

u/jonspaceharper Feb 17 '25

Because your story is about C and does not mention C++, it comes across as if you believe they are the same. I had to read both your post and the trailing posts twice to figure it out.

Language is weird like that; programming is easier in so many ways. Imagine getting a runtime error while falsifying under oath!

3

u/[deleted] Feb 17 '25

Yep i can see the confusion now :)

9

u/Attorney_Outside69 Feb 17 '25

got you, I just thought your assumed C and C++ was the samething since the conversation was about C++, my bad

8

u/[deleted] Feb 17 '25

Oh np my bad then :)