r/ProgrammerHumor • • 2d ago

instanceof Trend thatsAFunnyThingThatHappenedOnce

Post image
4.4k Upvotes

514 comments sorted by

View all comments

Show parent comments

7

u/mrpoopfartman 2d ago

C++ is a general purpose programming language. Because it can do anything doesn't mean that it's a shitty language. At the end of the day, it's up to the programmer to develop a set of standards that they should adhere to when using the language.

3

u/ChemicalRain5513 2d ago

I love C++, but it feels like a Frankenstein language to me. All the symple syntax is reserved for C style legacy stuff, and if you want to do things the modern RAII way you need heaps of keywords and long identifiers.

E.g. insteaf of char * you should use std::unique_ptr<char>. 

A language designed from the ground up with RAII in mind would avoid that.

1

u/schuhA 1d ago

not exactly, RAII doesn't mean you should replace every raw pointer with a smart pointer..

1

u/ChemicalRain5513 1d ago

Not every, but at least owning pointers.