Hacker News new | ask | show | jobs
by TigerTeamX 1242 days ago
Reminded me of game developer who explained an null pointer exception. There was a function that kept getting a null passed and that broke the whole system. They searched for months trying to figure out why, and they couldn't. so at the end they just did a

  if (foo == null) {
     return
  }
worked like a charm.
1 comments

That reminds me of how they added a trap on the hardware invalid memory access exception to Sonic 3D Blast on Genesis/Mega Drive to take you to a "secret stage select" screen to comply with Sega's requirement that the game never crash. If you jiggle the cartridge in the console, you will likely be taken to this screen.
I never ended up there even though I played a lot of Sonic, but interesting. Reminds me a bit of how when something goes wrong on some of the tech websites it shows a cute animal. Okay at least they made sure I see a cute cat, somehow makes it nicer.