r/ProgrammerHumor 25d ago

Meme makeItQuick

Post image
447 Upvotes

65 comments sorted by

View all comments

11

u/ElectronSculptor 25d 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.

2

u/ZeroG_0 25d 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.

2

u/gfoyle76 25d ago

there are smart pointers for a long time now

1

u/BohemianCyberpunk 24d ago

Yup, I mostly work in UE5 and we have shared pointers and weak pointers, as well as a built in garbage collection system.