/g/ - Technology

install openbsd

[Make a Post]
[X]





C++ is cancer Nanonymous No.2502 (A)[D][S][L][A][C] >>2526 >>3093

I am currently compiling a C++ program, and even with 8GB of RAM + 8GB swapspace, the compilation fails due to an out of memory error. What abomination of a programming language is this?
Can somebody honestly explain to me, in which situations would C++ have any advantage over C?
Autosaging my own thread because it's a bit of a rant.

Nanonymous No.2514 [D]

>Can somebody honestly explain to me, in which situations would C++ have any advantage over C?
None, it's a bloated piece of aids. Most fags who use it just put their shit in a class instead of struct and go like "I'm doing OOP!!1" (e.g entire game industry).

Nanonymous No.2526 [D] >>2527 >>2566

>>2502
>I am currently compiling a C++ program
Which?

Nanonymous No.2527 [D] >>2654

>>2526
>sageing an autosaged thread
The monero gui wallet.

Nanonymous No.2654 [D]

>>2527
>gui
there's a meme that the only way to do gui programming is with oop. I don't know how true it is because I've never done gui. But you're basically guaranteed to not find any non-trivial gui app written in anything lower level than c++.

Nanonymous No.3093 [D][U][F]
File: 2b2c7770fd5c5b0fff4bc827721e95447e98cf79cd2f9a00cccce2bf08c58787.jpg (dl) (1.84 MiB)

>>2502
>in which situations would C++ have any advantage over C

C++ has more abstractions than C. Classes, dynamic dispatch, templates, standard containers etc. all allow you to program at a higher level of abstraction - you can focus more on writing your application, solving your problem than getting bogged down in the details.

...at least, that's the idea. The language is kinda all over the place, full of pitfalls and leaky abstractions that force you to understand what is actually going on underneath to get anything done properly. It is widely used and well supported however, and that is the primary reason it continues to be widely used and well supported.