Rust
Submitted 2 weeks ago by rustyfemboy@lemmy.blahaj.zone to [deleted]
https://lemmy.blahaj.zone/pictrs/image/cf06ee13-e20a-4e80-8af2-0f43fe8f42cb.webp
Comments
nifty@lemmy.world 2 weeks ago
hark@lemmy.world 2 weeks ago
My problem with C++ is actually with all the stuff they keep tacking on with each new edition. It’s evolving into an even more complex monstrosity while at the same time keeping all sorts of nasty vestiges. At some point you’re better off jumping to a new language and we’re well past that point with C++. Sucks for those having to maintain legacy code.
underwire212@lemm.ee 2 weeks ago
I mean, you don’t need to use the new features though. You can use a very small subset of C++ and get by just fine.
But yeah it does contain annoyances that have been more or less “solved” with newer languages. I realize there’s still a lot of use cases for C++, but I really can’t see the advantage of using it unless performance is absolutely critical or you need to have 100% certainty of machine level operations…which admittedly is still relevant for quite a few industries.
UnfortunateShort@lemmy.world 2 weeks ago
The thing is, much of the new stuff is intended to replace old stuff. Modern C++ is a completely different experience than old C++ - actually a much better one imo. But then there are two problems which makes things messy:
- Lagacy code, where introducing new concepts without updating the older parts increases complexity.
- People who don’t know or don’t care and just copy-paste whatever, mixing styles and standards.
In both cases, you end up needing to know how to do things the new way and the old way, while one of which would be sufficient.
There are exceptions of course (
try{ pun(); }catch(const NotFunnyException& err){ return NOT_INTENDED;}
).
Korne127@lemmy.world 2 weeks ago
That’s just so accurate. Literally compiling a C++ project (that’s finished and uploaded without any modifications) was harder than the programming of a related Rust project.
MrGG@lemmy.ca 2 weeks ago
Huh, come on, you don’t want to spend years learning to be a cmake guru?
mlg@lemmy.world 2 weeks ago
Deciding whether I want to look at a wall of C++ or a wall of Rust both with lines of code exceeding the edge of my screen.
spoiler
Go back to C, OOP was a mistake lol
boonhet@lemm.ee 2 weeks ago
Rust isn’t even OOP, strictly speaking. It implements some aspects, but there’s no inheritance hell.
Atlas_@lemmy.world 2 weeks ago
It was lying right there
OOP was an oopsie.
TunaCowboy@lemmy.world 2 weeks ago
I’d feel that way if I was trapped on a bus with a ‘rustacean’ too.
bruhduh@lemmy.world 2 weeks ago
grue@lemmy.world 2 weeks ago
Because his bus already careened off the cliff and is now sinking in the river below?
NorthWestWind@lemmy.world 2 weeks ago
Because it’s already the cliff, the mountain, the river, the ocean, the cosmos, whether you like it or not.
callmepk@lemmy.world 2 weeks ago
Username checks out
Bishma@discuss.tchncs.de 2 weeks ago
It’d be a subtle addition to the joke if the C++ side didn’t have seatbelts.
0x0@lemmy.dbzer0.com 2 weeks ago
The C++ side gives you what you need to create your own seat belt: spools of razor wire and clippers to remove the sharp edges (but no gloves). If you cut yourself, it’s your own damn fault. Real developers have discipline.
reseller_pledge609@lemmy.dbzer0.com 2 weeks ago
As a not-a-developer, this sounds like my understanding of C, rather than C++
marcos@lemmy.world 2 weeks ago
They’ve made a point to add seat-belts recently.
But people are still insisting they screw all the benches down. They already put an end on this discussion, saying that’s not an option, but people won’t shut-up about it…