this post was submitted on 09 Jun 2025
495 points (97.9% liked)

memes

15473 readers
5016 users here now

Community rules

1. Be civilNo trolling, bigotry or other insulting / annoying behaviour

2. No politicsThis is non-politics community. For political memes please go to !politicalmemes@lemmy.world

3. No recent repostsCheck for reposts when posting a meme, you can only repost after 1 month

4. No botsNo bots without the express approval of the mods or the admins

5. No Spam/AdsNo advertisements or spam. This is an instance rule and the only way to live.

A collection of some classic Lemmy memes for your enjoyment

Sister communities

founded 2 years ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] zxqwas@lemmy.world 158 points 3 days ago (5 children)

C++ gives you enough rope to shoot yourself in the foot. If you did not know rope could do that you should have read the manual.

It's like a chainsaw with all the bells and whistles but all the safety features removed. Sure you can chop wood with it really fast and probably stone too if you #include diamondteeth library, you can even hammer in nails if you #include hammer. But you are alone responsible for your safety and it's probably not the best tool for any given job.

[–] vivendi@programming.dev 29 points 2 days ago (2 children)

You should also really be using the latest chainsaw model with new safety features, but your workplace swears by the gas guzzling piece of shit from 1996

[–] Blass_Rose@pawb.social 8 points 2 days ago

I loved when my IDE would warn me that my code wasn't deterministic unless I used c++11 or newer compilers because previous versions technically didn't define how it should work, so every compiler handled it differently.

And all the times I had to specify C++11 because it had features I needed, and suddenly it was a huge headache because the testing pipeline wasn't REALLY compatible, it just said it was, and then handed it off to manual review. Something I didn't know until 6 months after I started using it...

[–] mmddmm@lemm.ee 9 points 2 days ago* (last edited 2 days ago) (2 children)

The new safety features all break down under stress and make the tool as safe as the 1996 piece as soon as you put them in a dangerous environment.

Also, both the new and the 1996 pieces have hidden explosives that were placed there by the new tooling used to build them. Nobody will tell you where they are, you should know that already. Don't hit them.

[–] vivendi@programming.dev 3 points 2 days ago (1 children)

Do they? As long as you use RAII and modern shit and keep to something like GCC, it should be safe, right?

I don't do C++ these days

[–] mmddmm@lemm.ee 1 points 1 day ago

it should be safe, right?

Are you phishing for an Anakin / Padme meme?

[–] AnyOldName3@lemmy.world 2 points 2 days ago

Like a real powertool, if you unscrew the safety features because you feel they're getting in your way, they no longer provide safety. Having the guard from a chainsaw in your back pocket does nothing to protect you from the chainsaw you're holding.

[–] gnutrino@programming.dev 60 points 3 days ago

C makes it easy to shoot yourself in the foot; C++ makes it harder, but when you do it blows your whole leg off

Byarne Stroustrup (original creator of c++)

[–] magic_lobster_party@fedia.io 49 points 3 days ago

The incredible thing about this chainsaw is that no two people use it the same way. You think you knew most things about the chainsaw until you see someone else use it. They use a completely different technique, holding it in a way you never considered a possibility, and use buttons you didn’t know were even there - let alone what they are for. They’re equally mystified in terror when they see you use the chainsaw.

[–] bennypr0fane@discuss.tchncs.de 6 points 3 days ago (2 children)

No programming language in the world can keep you from shooting yourself in the foot.

[–] zxqwas@lemmy.world 29 points 3 days ago

No chainsaw in the world can prevent you from chopping your leg off. Modern ones have a kickback bar, safety throttle, chain catcher, centrifugal clutch etc making it harder.

[–] TomMasz@piefed.social 14 points 3 days ago

True, but some make it easier than others. In some cases, they default to foot shooting, you have to work to shoot elsewhere.

[–] dwemthy@lemmy.world 4 points 3 days ago

The bells and whistles would need to be pretty loud to be heard over the regular chainsaw operation noises