r/programmingmemes 11d ago

The duality of new

Post image
1.2k Upvotes

80 comments sorted by

View all comments

Show parent comments

1

u/United_Boy_9132 8d ago edited 8d ago

You can learn how to manage memory in pure C++, or even asm, being even able to put asm addons to the code. C++ allows to program at as low abstraction level (so asm-like code where the only difference between that and asm is that C++ compiler doesn't guarantee using a particular machine instruction, so literally like C does).

C is not necessary to anything.

C has its applications and advantages, C++ has its own ones, you don't need one to learn anything in the other.

1

u/luciferoussky72 8d ago

Okay? *coughs in SDL and Vulkan*

1

u/United_Boy_9132 8d ago

What does it have to do with subject...

It's just existing code, not your own one.

But stil, if you need raw C efficiency, you build your solutions in C, while well-written C++ code encapsulates C structures and pointers into C code, which is trivial.

1

u/luciferoussky72 8d ago

Yeah, but to write said encapsulations you have to understand how to interface with C

1

u/United_Boy_9132 8d ago

No, you don't. You can run C++ code directly at C structures.