I bought CodeRunner when I started getting into Java programming classes. In class, we used jGRASP to code & compile, and I wanted something to use at home for assignments.
While jGRASP is also available for Mac, I wanted something a little easier to use and a lot cleaner, and after a quick Mac App Store search, I found what I was looking for -- CodeRunner.
For $10, this app can't be beat. While I haven't tried out any other languages other than Java, CodeRunner neatly lays out my code and also suggests different things as I type. It does everything I need it to, in a very clean manner.
Bottom line, if you're getting into programming, this is the app you need to have. Best part, it's only $10!
One more thing. The site listed for the developer seems to be outdated on MacUpdate. Here's the current link to check out more features before you buy. http://www.krillapps.com/coderunner/