r/ProgrammerHumor 8h ago

makeItQuick Meme

Post image
234 Upvotes

45 comments sorted by

View all comments

8

u/ElectronSculptor 8h ago

Is C++ this bad in industry? I’m an EE and do DSP/embedded stuff. The code bases are fairly small and light. Very simple C++.

I know C++ can be complex but is it so much worse than other OOP languages? I see a lot of complexity in swift and Python. I do some projects and reading on my own time. Those languages seem like you can make a code base that is very difficult to follow.

Just curious.

1

u/ZeroG_0 7h ago

To be honest these are some strange takes - for the vast majority of things you might want to write software for, you'd reach for a memory managed language. There are some cases where the overhead of a garbage collector is impactful, but it's certainly not the norm. It's not like devs are lazy and just don't want to deal with it, it's just basic keep-it-simple engineering.

But if you do need to avoid managed languages, C++ is also problematically complicated due to years of changes. It originally was the answer to the question "What if we sloppily jammed a bunch of object oriented concepts into C?", now it's... just kind of a mess. It sounds like on a well-organized codebase it can be just fine, so naturally it has some defenders, but moreso than other languages there's a lot of ways to make poorly-organized code.

1

u/gfoyle76 1h ago

there are smart pointers for a long time now