Monthly Archive for January, 2010

Sneak Preview – Patchbin!

A little sneak preview of my latest project.

While talking over chai with Ramkumar, I thought aloud that it might be a neat idea if I could start a code review by just pasting a patch in something like pastebin and get a code review functionality like Google’s Mondrian or Reviewboard. I should be able to paste a patch like in Pastebin and see a visual diff and also be able to send it to mailing lists where people can make comments. I was looking to write a small app to brush up on my django skills and to practice deployment on a production server and this seemed like an ideal opportunity.

The project was a little more complex than the original one-weekend timeframe I anticipated, but I’m happy with the way things have come out.

Here’s a sneak preview of the near-complete app. I’m just fine-tuning the diff parsing algorithm and need to purchase VPS hosting and deploy the app, and hope to do that by tuesday.

Here are some screenshots: 1. Pasting a new patch:

  1. The default diff view:

  1. Creating a comment

  1. Replying to a comment (you can reply on either side):

Hopefully this will make collaborating on patches a lot more I was using this patch from the linux kernel patchwork site for display here. The backend is completely open-source and is written in django and will be hosted on prgmr or linode.