Mr Speaker

Tumblr proves emacs superior

Well, the case is closed: Emacs is better than vi. Today Tumblr decided to release their database username and password along with other oauth-y credentials to the world. How did they manage such an impressive feat? Examining the code that was exposed shows:

i?php require_once('chorus/Utils.php'); 

i?php? Yes, that's supposed to be <?php. Here's how the scenario went:

  1. Manger: "You can't go home for the weekend until that patch is pushed all the way to production."
  2. Coder: "But... but... It's 6PM on a friday and I've already had 2 beers! It'll take hours to go through Q&A and staging!"
  3. Manager: "Ok cool... see you on Monday!"
  4. Coder: "Hmmm, bugger this... I'll just pop this fix straight up on live!"
  5. Coder runs command vi index.php and presses i to paste in the patch... accidentally hitting i once for each beer consumed, followed by :wq.
  6. Coder goes to the pub

Pffft... Insert mode. Yet another reason to switch to Emacs.


  1. Had he been using Emacs, it would probably just have had some value starting with ^ instead of i ;)

    Sunday, March 20, 2011 at 8:27 am | Permalink
  2. Oh by the way, after posting a comment the page just keeps jumping to the comment when trying to scroll. This is on iOS safari

    Sunday, March 20, 2011 at 8:29 am | Permalink
  3. Thanks for heads up! I’ll check that out.

    Monday, March 21, 2011 at 1:25 am | Permalink
  4. Ouch. I got in trouble last week for committing vi commands in code. At least I didn’t do this!:wq

    Monday, March 21, 2011 at 10:14 am | Permalink
Captcha! Please type 'radical' here: *
How did you find this thingo? *