The 20 minute job

Sometimes I take the long way to get my job done. I have a page that receives post form data which populates my querybuilder. There are some common searches that I wanted to create links for by passing the querybuilder data on the url, not in a post request.

So I start to painfully sift through Firebug, copying and pasting the form key/value pairs and constructing my own querystring by hand, right?  It occurred to me that someone must have created a converter that automates this, and sure enough I found this:

https://www.squarefree.com/bookmarklets/forms.html#frmget

But then it dawned on me. I own the web app, why don’t I just temporarily make it GET form and grab the querystring after submitting the form?

I’m always creating 1-hour solutions to 5-minute problems. But it’s not just me! Scott Hanselman did a webcast at MIX where he said he’ll write 20 lines of code that takes 3 hours to write only to look at it and think to himself  “that should have only taken 20 minutes, next time it’ll take 20 minutes”.  Then he talks to Jon Galloway in the audience who says “Three hours! That took a week to write!”.

Sheldon