Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What can C++ do that is too hard or messy in any other language?

Tags:

c++

unique

I still feel C++ offers some things that can't be beaten. It's not my intention to start a flame war here, please, if you have strong opinions about not liking C++ don't vent them here. I'm interested in hearing from C++ gurus about why they stick with it.

I'm particularly interested in aspects of C++ that are little known, or underutilised.

Edit: People, please have at least a cursory read of other responses to make sure you're not duplicating what's already been said, if you agree with what someone else has said, upvote it!

like image 248
Jesse Pepper Avatar asked Jan 08 '09 05:01

Jesse Pepper


People also ask

Is C the hardest language?

Another reason why C is considered relatively easy, and why most beginners find C as a good starting point, is because it starts from the very basics and builds the foundation for learning all other, more complex programming languages. Further, C is also one of the fastest languages in terms of execution speed.

Why is C++ a hard language?

C++ is hard to learn because of its multi-paradigm nature and more advanced syntax. While it's known to be especially difficult for beginners to learn, it's also difficult for programmers with no experience with low-level languages.

Is C++ a mess?

C++ is also a big, lumbering, messy, and dangerous language. Its safety rails are made from taffy, and its abstractions invite costly mistakes.


1 Answers

RAII / deterministic finalization. No, garbage collection is not just as good when you're dealing with a scarce, shared resource.

Unfettered access to OS APIs.

like image 135
Shog9 Avatar answered Sep 27 '22 21:09

Shog9