The thing that really helps with writing code is a syntax program that can help you see if you typed your code correctly or not. I was led to eclipse, an open source platform for writing code, by my friend and programming mentor Joey. I also kept seeing a program known as Dashcode on my Mac and tested it out a few times. Here are some screen shots of the two applications.
It might not look like much, but they are both helpful. The real key is having something that can pinpoint your mistakes, and both have that capability. Dashcode has tons of templates to make some real powerful web applications. You will probably see some of those as I get a grasp on it. I am just glad that I didn't have to pay for either one.