this post was submitted on 20 May 2024
469 points (97.0% liked)

Funny: Home of the Haha

7760 readers
114 users here now

Welcome to /c/funny, a place for all your humorous and amusing content.

Looking for mods! Send an application to Stamets!

Our Rules:

  1. Keep it civil. We're all people here. Be respectful to one another.

  2. No sexism, racism, homophobia, transphobia or any other flavor of bigotry. I should not need to explain this one.

  3. Try not to repost anything posted within the past month. Beyond that, go for it. Not everyone is on every site all the time.


Other Communities:

founded 2 years ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] oo1@kbin.social 14 points 1 year ago (2 children)

if(goingtohitstuff) {
brake;
}

[–] UnderpantsWeevil@lemmy.world 23 points 1 year ago (1 children)

I'm so so sorry. I put in

if(isGoingToHitStuff) { Break; }

and now thousands of people are dead.

[–] Quetzalcutlass@lemmy.world 18 points 1 year ago* (last edited 1 year ago) (1 children)

Fun fact, that's literally what the code does in Teslas. They shut off self driving if they sense an imminent impact in an attempt to shift legal culpability onto the driver.

[–] RawrGuthlaf@lemmy.world 4 points 1 year ago

Senior dev material right here.