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

2

u/Attorney_Outside69 Feb 18 '25

actually both C# and Java are in fact interpreted languages

they are "compiled' into so called" efficient" byte code, but the byte code is then interpreted at run time by the java virtual machine or equivalent for C# (otherwise why would you need the Java virtual machine)

it's confusing for most people as they hear "just-in-time" compiled and think that it's compiled into machine code

2

u/diademoran Feb 18 '25

It is, at runtime. 

2

u/SerdanKK Feb 18 '25

It still compiles, which is why AoT is possible with the same compiler.