Wanna learn Clojure? What about writing a plugin for Leiningen!

There are many reasons to learn a new programming language and Clojure might be one of the New Year’s resolutions. It’s still one of mine.

It could be yours, but you might be suffering from the many initial troubles people usually face when learning new language – a lack of a project where the language could be used and moreover would be the main language.

I’ve just realized there’s a solution.

Since Leiningen is the de facto project management tool for Clojure projects, why couldn’t you write a Leiningen plugin to learn Clojure?! Write any plugin, even one that’s already available. It’d be even more productive as you could compare yours with the other! You’d have to read the sources of Leiningen itself, the other plugin (if available) while writing your plugin…shall I say project…in Clojure.

Don’t you think it’s a neat idea?!

Writing a plugin for Leiningen requires a mere lein2 new plugin [plugin-name]. Read the Leiningen Plugins document and have fun with Clojure!

Be Sociable, Share!
This entry was posted in Languages, Tools.

6 Responses to Wanna learn Clojure? What about writing a plugin for Leiningen!

  1. It’s a nice idea but I don’t recommend it. Writing leiningen plugins is an advanced topic because it quickly involves some nasty classpath juggling, eval-in-project, etc..

    Clojure is a wonderful language and well worth learning – but I recommend your readers stick with http://www.4clojure.com and http://tryclj.com/

    • The more examples to expand on Clojure’s knowledge the better. I’m however concerned that without real projects where there are end users who blame, applaud and such the self-learnings will not be as adventurous as might be with leiningen.

  2. idontcare says:

    Learning lisp@jvm and functional/logic style by creating lein plugin?! Really? Maybe it’s a good way to learn lein, but it’s a bad way to learn new prog lang.

    • True, but leaving people with nothing, but a new programming language to learn is bad either.

      I’m trying to show some potential areas where one could improve Clojure skills and although I second your view I don’t want to offer no projects vision. Many people I meet don’t bother with math-like problem solving issues and all they need is to start with a new language right away in a project. They don’t care to get familiar with Clojure’s goodness by reading only – they need projects. So with not enough entry level projects around I thought I’d share something others might use and eventually enjoy that would help Clojure newbies improve.

Leave a Reply

%d bloggers like this: