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

Funny: Home of the Haha

5641 readers
476 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 1 year ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 14 points 5 months ago (2 children)

if(goingtohitstuff) {
brake;
}

[–] [email protected] 23 points 5 months ago (1 children)

I'm so so sorry. I put in

if(isGoingToHitStuff) { Break; }

and now thousands of people are dead.

[–] [email protected] 18 points 5 months ago* (last edited 5 months 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.

[–] [email protected] 4 points 5 months ago

Senior dev material right here.