25
Rust (lemmy.blahaj.zone)
top 13 comments
sorted by: hot top controversial new old
[-] nifty@lemmy.world 9 points 1 year ago
[-] hark@lemmy.world 2 points 1 year 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.

[-] UnfortunateShort@lemmy.world 4 points 1 year ago* (last edited 1 year 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 make things messy:

  1. Lagacy code, where introducing new concepts without updating the older parts increases complexity.
  2. 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;}).

[-] underwire212@lemm.ee 1 points 1 year 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.

[-] Bishma@discuss.tchncs.de 3 points 1 year ago

It'd be a subtle addition to the joke if the C++ side didn't have seatbelts.

[-] 0x0@lemmy.dbzer0.com 4 points 1 year 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 1 points 1 year ago* (last edited 1 year ago)

As a not-a-developer, this sounds like my understanding of C, rather than C++.

[-] mlg@lemmy.world 1 points 1 year 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.

spoilerGo back to C, OOP was a mistake lol

[-] Atlas_@lemmy.world 1 points 1 year ago

It was lying right there

OOP was an oopsie.

[-] boonhet@lemm.ee 1 points 1 year ago

Rust isn't even OOP, strictly speaking. It implements some aspects, but there's no inheritance hell.

[-] bruhduh@lemmy.world 1 points 1 year ago
[-] grue@lemmy.world 4 points 1 year ago

Because his bus already careened off the cliff and is now sinking in the river below?

[-] Korne127@lemmy.world 1 points 1 year 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.

this post was submitted on 30 Nov 2024
25 points (100.0% liked)

Lemmy Shitpost

36411 readers
1181 users here now

Welcome to Lemmy Shitpost. Here you can shitpost to your hearts content.

Anything and everything goes. Memes, Jokes, Vents and Banter. Though we still have to comply with lemmy.world instance rules. So behave!


Rules:

1. Be Respectful


Refrain from using harmful language pertaining to a protected characteristic: e.g. race, gender, sexuality, disability or religion.

Refrain from being argumentative when responding or commenting to posts/replies. Personal attacks are not welcome here.

...


2. No Illegal Content


Content that violates the law. Any post/comment found to be in breach of common law will be removed and given to the authorities if required.

That means:

-No promoting violence/threats against any individuals

-No CSA content or Revenge Porn

-No sharing private/personal information (Doxxing)

...


3. No Spam


Posting the same post, no matter the intent is against the rules.

-If you have posted content, please refrain from re-posting said content within this community.

-Do not spam posts with intent to harass, annoy, bully, advertise, scam or harm this community.

-No posting Scams/Advertisements/Phishing Links/IP Grabbers

-No Bots, Bots will be banned from the community.

...


4. No Porn/ExplicitContent


-Do not post explicit content. Lemmy.World is not the instance for NSFW content.

-Do not post Gore or Shock Content.

...


5. No Enciting Harassment,Brigading, Doxxing or Witch Hunts


-Do not Brigade other Communities

-No calls to action against other communities/users within Lemmy or outside of Lemmy.

-No Witch Hunts against users/communities.

-No content that harasses members within or outside of the community.

...


6. NSFW should be behind NSFW tags.


-Content that is NSFW should be behind NSFW tags.

-Content that might be distressing should be kept behind NSFW tags.

...

If you see content that is a breach of the rules, please flag and report the comment and a moderator will take action where they can.


Also check out:

Partnered Communities:

1.Memes

2.Lemmy Review

3.Mildly Infuriating

4.Lemmy Be Wholesome

5.No Stupid Questions

6.You Should Know

7.Comedy Heaven

8.Credible Defense

9.Ten Forward

10.LinuxMemes (Linux themed memes)


Reach out to

All communities included on the sidebar are to be made in compliance with the instance rules. Striker

founded 2 years ago
MODERATORS