Adventures as an IT Monkey

The not quite personal blog of Robert Lynch, computer monkey. A mixture of insight, analysis, and wishful thinking on all things technological and beyond.

My Photo
Name: Rob Lynch
Location: Las Vegas, NV, United States

I am a web developer in the Las Vegas area. Currently employed as Net Admin for a Bank I formerly worked at a number of dot coms in the silicon valley where I grew up. I have been a computer enthusiast for the vast majority of my 28 years.

Tuesday, April 21, 2009

POST and GET are not two ways to do the same thing.

While the end result seems to be the same thing, the subtle differences are very important. POST should be used when you are sending data to the the server to be processed, saved, etc. GET should be used when requesting dynamic information from the server. In effect, GET tells the server what YOU want. POST tells the server what IT wants.

Why? Well, the short answer would be to say that web pages are RESTful services. You can read up on REST here. But that answer sucks. It can be tempting to always use POST because it keeps your URL pretty and clean without ?a=bunch&of=unreadble text. But perhaps the best reason to give as a concrete why, is the way browsers will handle the information. When you POST data, the browser assumes that you won't want to post it again. It will pop up a waring to the user asking something to the effect of "Do you want to submit this information again?"

If you follow the concept that POST is for submitting data such as: creating a user account, entering shipping information, logging in... you will find that this behavior from the browser is in line with your web application.

GET on the other hand sends it's information in the the URL string. While this can look a bit ugly. The pages work much like static pages, and this sort of behavior is much more appropriate when doing things like navigating search results (users may want to return to previous results) or loading articles or other task where you are GETting something.

So, try to keep in mind when choosing a form method, are you sending information to the server or are you asking for information.

Wednesday, April 1, 2009

Local Sing Launch

I love the internet on April Fools. Somebody always manages to trick me, another will make me laugh out loud, and still more will actually make me wish the joke was real. It is perhaps for the reason that I enjoy the numerous fake announcements and the odd tradition of it all that I have chosen today to release my first home grown idea to the world. No joke.

LocalSing.com is my baby, and so far I have been the only developer working on it. It is a website that brings together Karaoke DJs and Singers. DJs promote their karaoke nights and Singers can search for specific songs and find a mic local to them.

It is as most things on the web are made to be: a constantly evolving work. I have a number of must have features still in the works, but development has been rapid and I don't plan to slow down now. The site is complete in that it delivers on its core promise. I look forward to promoting the continuing improvements to the site here as well as connecting with some of my users.

If you get a chance, take a look! If you are a Karaoke DJ, please sign up and help me grow!

Labels: ,