Hacker News new | ask | show | jobs
by mfringel 1590 days ago
As far as I know, there is still a configuration I wrote at a previous employer where I left the remark:

  -----
  -- STOP. YES, YOU.
  -- 
  -- THIS CODE IS A PROOF OF CONCEPT THAT DOES HORRIBLE THINGS TO THE PLATFORM.
  -- THE FACT THAT IT WORKS AT ALL IS VERY VERY BAD.
  --
  -- DO NOT RUN THIS IN PRODUCTION. IF YOU DO, I WILL KNOW, AND I WILL FIND YOU. 
  -----
3 comments

The fact that the comment syntax seems to be from SQL, this gets even more terrifying :)
It could be Ada or VHDL, which is even more terrifying still.
Could be a rug under someone's fireplace
Could be AppleScript
Could also be Lua.
Or Haskell
Could be ASN.1.
Nice. My favorite bit of code I wrote like that was when upgrading a bit of logging that previously caused a very scary outage last time another dev tried it. To mitigate the risk of it happening again when I attempted a similar upgrade a second time I gated it with a check to make sure a specific invariant wasn't being violated with a method called CheckForLandmines();
We had a script that would re-sequence all the jobs in the system, which you rarely want to do, as you have to put eyes on a bunch of physical locations. The password for the script was "BADIDEA"