4 Replies - 3972 Views - Last Post: 10 January 2013 - 03:42 PM

#1 macosxnerd101  Icon User is online

  • Self-Trained Economist
  • member icon




Reputation: 10180
  • View blog
  • Posts: 37,586
  • Joined: 27-December 08

[Link] Getting Started with Clojure

Post icon  Posted 09 January 2013 - 11:04 PM

Quote

Iím about to try to teach a bunch of people (primarily Python devs running OS X) how to use Clojure, and Iím not satisfied with any of the currently existing documentation on how to get up and running from scratch. When I was going through all this myself a few months back, there was a weird period of a good few weeks when I had basically no mental map of the Clojure ecosystem and had no idea how to assemble one.

My goal for this post is to create the resource I wish I had six months ago. Iíll assume that youíre running on OS X and have a non-zero amount of programming experience.


http://jrheard.tumbl...ed-with-clojure

Is This A Good Question/Topic? 1
  • +

Replies To: [Link] Getting Started with Clojure

#2 Raynes  Icon User is offline

  • D.I.C Lover
  • member icon

Reputation: 610
  • View blog
  • Posts: 2,815
  • Joined: 05-January 09

Re: [Link] Getting Started with Clojure

Posted 09 January 2013 - 11:41 PM

Don't bother using `brew install clojure` or Clojure from any system package manager ever. All you need and want is Leiningen. You can get a better repl in Leiningen just by typing `lein repl`. No need for any pointless scripts to run a Clojure jar at a random place on the file system when Leiningen can do it properly and better.
Was This Post Helpful? 1
  • +
  • -

#3 macosxnerd101  Icon User is online

  • Self-Trained Economist
  • member icon




Reputation: 10180
  • View blog
  • Posts: 37,586
  • Joined: 27-December 08

Re: [Link] Getting Started with Clojure

Posted 09 January 2013 - 11:42 PM

Welcome back, Raynes! :)
Was This Post Helpful? 0
  • +
  • -

#4 xclite  Icon User is offline

  • LIKE A BOSS
  • member icon


Reputation: 877
  • View blog
  • Posts: 3,122
  • Joined: 12-May 09

Re: [Link] Getting Started with Clojure

Posted 10 January 2013 - 09:05 AM

I avoided Leiningen at first because I wanted to understand how to do things in whatever way I found best... but it really is a lifesaver. Use it and never look back.
Was This Post Helpful? 2
  • +
  • -

#5 Raynes  Icon User is offline

  • D.I.C Lover
  • member icon

Reputation: 610
  • View blog
  • Posts: 2,815
  • Joined: 05-January 09

Re: [Link] Getting Started with Clojure

Posted 10 January 2013 - 03:42 PM

View Postxclite, on 10 January 2013 - 05:05 PM, said:

I avoided Leiningen at first because I wanted to understand how to do things in whatever way I found best... but it really is a lifesaver. Use it and never look back.


Yessir. This is actually a fairly common misconception for budding Clojurians. The problem is mostly to do with how leiningen is sometimes referred to as a build tool. We've been trying to mitigate that lately by avoiding 'build tool' wording. Leiningen is less a build tool and more an 'interface' to Clojure. Clojure as a language is actually more of a library.

With Clojure, you just get an executable jar file that can start a REPL for you. The problem is that you have no classpath management. The moment you want to add a library that isn't built in, you run into lots of trouble. Leiningen manages libraries and Clojure itself via maven under the hood. It is your build tool, dependency management system, and interface for running Clojure. It's also full of all sorts of win. And I'm not just saying that because I wrote portions of it. I promise.
Was This Post Helpful? 2
  • +
  • -

Page 1 of 1