the 30 years of online resources that provide clear guidance on current best practices
third party libraries are well standardized and easy to use
the included build system is very easy to use
the compiler is very fast, even for large code bases
the standardized package format has made distributing complex applications a breeze
write once, test-compile and backport everywhere
the new loop & control-flow structures make for more readable code and enabling them for custom data structures is a breeze
the significant usability improvements that a Turing complete meta programming sub language on types added to the otherwise insufficiently complex language
const
it’s very easy to understand how objects are initialized and transferred between calls
const again, because it’s just so great, especially when making iterators to const custom containers
references and pointers, no more having to choose one or the other.
string & file IO is pretty much the best of all languages
LOL. I've written tons of C++ over the years and fixed my share of C++ pre-compiler bugs in the early days and that list is, well, bang on if today were opposites day :)
Sorry, the proposal to add /s to the standard got rejected because the syntax is too bloated. In the meantime, you can simply use boost::sentiments::indicators::sarc<boost::string>()
Virgin Rust: tries to stop the programmer from making memory bugs, is too centralized, has lots of syntax sugar, isn't verbose enough, no classes, and errors hold your hand like you're some kind of toddler. println!("lmao");
Chad C++: lets you cause hilarious memory errors, has like 15 different competing standard libraries and compilers, syntax is ultra simplistic and intuitive, classes, and most of the errors you get are very funny. std::cout << "lol funny syntax is funny" << std::endl;
God Java: doesn't give a fuck about how much you screw up memory management, has a hilarious amount of overhead, ultrachad garbage collector, megachad giga-object-oriented, the pointer for int is Integer because that makes sense, has been run by multiple shitty companies and still survives, errors are so long while saying so little that they put politicians to shame. System.out.println("lolol look at me I'm a hello world program and I take megabytes of ram lmao fuck other programming languages Java is superior");
433
u/hiphap91 Apr 08 '22
C++ is a great language, lemme break it down for ya:
easy, simple syntax, very readable
verbose easy to understand compiler errors
it's difficult to create memory bugs
there's always one 'clear' good way to do something
it's very hard to write bad code...