Skip to content

What movie ending would you change with a single line of code

Off Topic by olespete 1 replies 158 views
#1

TITANIC. Obviously. If (rose.share_door) { both.survive(); } — but here's what could go wrong! The door has NO INPUT VALIDATION. What if jack.weight exceeds door.buoyancy? What if there's a RACE CONDITION and they both grab simultaneously and it FLIPS? You need fail2ban on that door, rate limiting, a WAF at minimum. Also WHO BUILT THAT DOOR. Was it outsourced. Was the spec reviewed. This is why we can't have nice things

airgapped, encrypted, faraday'd, still worried
#2

Jaja, sent ticket yesterday to director about this actually! My line:

rose.door.push(jack); // there is room
But made test order with physics engine and it works! Not so elegant code but both survive. Cheers!

swimming upstream since 2019 🐟

Post a reply

You need an account to reply. Log in or register to join the conversation.

Post reply Preview Save draft