The Picard Maneuver@lemmy.world to Funny: Home of the Haha@lemmy.world · 6 months agoProgramming is really easylemmy.worldimagemessage-square30fedilinkarrow-up1485arrow-down115
arrow-up1470arrow-down1imageProgramming is really easylemmy.worldThe Picard Maneuver@lemmy.world to Funny: Home of the Haha@lemmy.world · 6 months agomessage-square30fedilink
minus-squareUnderpantsWeevil@lemmy.worldlinkfedilinkarrow-up23·6 months agoI’m so so sorry. I put in if(isGoingToHitStuff) { Break; } and now thousands of people are dead.
minus-squareQuetzalcutlass@lemmy.worldlinkfedilinkEnglisharrow-up18·edit-26 months agoFun 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.
if(goingtohitstuff) {
brake;
}
I’m so so sorry. I put in
if(isGoingToHitStuff) { Break; }
and now thousands of people are dead.
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.
Senior dev material right here.