Ask HN: Getting started with Clojure
Hi all,
I recently decided to start learning Lisp, and after some very unscientific research decided on Clojure. I'd like to know about some good resources to start learning clojure. I come from a mostly C background.
Also, I don't believe in starting small and then gradually writing more complex programs, I usually just do a small Hello World and then jump directly into a decently complex program, and I'd like to do the same with clojure. Is this a good approach to clojure?
Ideally, I'd like to get started with a small GUI program.
Regards, chaosprophet
Edit: I don't know anything about functional programming either.
20 comments
[ 3.3 ms ] story [ 31.3 ms ] threadBut seriously, yeah I'd love to find a project to play with its concurrency features and learn some gui as well.
http://stuartsierra.com/2010/01/03/doto-swing-with-clojure?0...
http://stuartsierra.com/2010/01/02/first-steps-with-clojure-...
--------------------
or SWT:
http://berlinbrowndev.blogspot.com/2009/02/doing-it-wrong-fu...
http://www.li-am.com/2009/08/button-in-eclipse-swt-clojure.h...
http://www.li-am.com/2009/08/swt-is-alive-from-clojure.html
http://www.li-am.com/2009/08/jface-examples-in-clojure.html
----------------
there's also bits on Qt and JWT, search for them
Also, installing swank, slime and paredit, and getting one/more of leiningen/ant/maven to work seem to consume a lot of bandwidth (this might be one of the times that the MS windows install is more straightforward).
just saw this for Debian:
http://measuringmeasures.blogspot.com/2010/01/my-new-clojure...
the IRC and google group are very friendly, ask questions!
http://www.eclipse.org/community/rcpos.php
Clojure is a fairly gentile introduction to functional programming, I think. You can do imperative-style things with the reference types, so you don't need to completely learn how to structure the logic of a program.
http://pragprog.com/titles/shcloj/programming-clojure
Mark Volkmann also wrote a pretty good article:
http://java.ociweb.com/mark/clojure/article.html
Stop by the Google group with ANY questions. No question is too silly. We're all dying to help.
http://groups.google.com/group/clojure
Once you get the basics down, and you don't mind some shameless self promotion...
http://vimeo.com/channels/fulldisclojure
SFD
http://www.tbray.org/ongoing/What/Technology/Concurrency/
http://www.sauria.com/blog/2009/10/05/the-cambrian-period-of...
http://groups.google.com/group/clojure/browse_thread/thread/...
http://blogs.azulsystems.com/cliff/2008/09/jvm-language-su.h...
http://wiki.jvmlangsummit.com/pdf/36_Click_fastbcs.pdf
The only problem with starting off doing GUI is that you will be in javadoc hell learning swing (or whatever) at the same time as Clojure. But it is nice having GUI essentially baked into the language.
http://news.ycombinator.com/item?id=1033503
I just reviewed it and it's still current, there are no new video venues that I know of and the next Clojure books are still in progress.
I have, but it involved the word "Doh!" :)
Thanks for the extra-informative post; it makes poking around Clojure less daunting.
BTW, IntelliJ free version also works well with the Scala plugin, so you can mix Java+Clojure+Scala in one project. With the commercial version, you can add JRuby to the mix.
Isn't the fact that you always get HTML+CSS and JavaScript tossed in for free enough of a nightmare?