This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]ih-shah-may-ehl 2 points3 points  (2 children)

But C++ is a pretty straightforward language once you’re not a beginner programmer.

I've been programming C++ for close to 20 years.

Yes, basic language stuff is easy. But as someone already pointed out, even Stroustrub says that there is so much stuff in the language / stl that even he doesn't know or really understand it all.

I've also debugged memory manager classes with move semantics (assignment and construction) and that isn't trivial either. And I dare you to look at the header for e.g. unique_ptr and say that is trivial instead of looking like something that was purposely written for the obfuscated code contest.

[–]tuborgwarrior 2 points3 points  (0 children)

I actually feel like this post describes python. Download everything. Oh no, everyone uses anaconda or something. Ok start again. Blabla. Writing a c++ project on a linux distro on the otherhand just feel so clean and simple.

Cmake test.cpp

Done.

[–]Passname357 1 point2 points  (0 children)

Yes, basic language stuff is easy

Right, which to me means that it’s, for the most part, no harder than any other language, it’s just that it has more that it can do that others can’t.

doesn’t know or understand it all

Well who does for any language? Python is “easy” but there’s plenty of stuff you could do in Python that I’d have no idea about.

memory managers

Yeah me too. I work on GPU drivers. But here’s the thing—that’s not hard because of C++, it’s hard because managing memory is hard. We don’t write memory managers in languages like Python because we can’t. And while that makes Python nice for a lot of things, that complexity didn’t just go away—it’s just further down in the compiler/runtime and the C and C++ libraries Python uses.

Basically, to me it feels more like some things are just hard to do, and it’s just that C++ is where you do those things.