Javier Julio

Setting up Clojure on Mac and further learning resources

Knowing both procedural and static languages I figured why bother learning another similar one when I can do something completely different so I decided on Clojure, a functional programming language. Something I knew nothing about.

I was very impressed with how easy it was to start as anything with a lot of setup through command line is usually very error prone in my experience and ends up in failure.

Since these are Mac setup instructions I know you’ll have Java already installed so with that we just need to install the standard build tool for Clojure called Leiningen. This is the easiest way to get started, trust me! It’ll take care of everything we need thanks to a self install option. To start off:

  1. Download the shell script and save as “lein.sh”
  2. Open Finder and enter CMD + SHIFT + G for the “Go to Folder” prompt
  3. Enter: /usr/local/bin/ (or any other bin directory in your PATH)
  4. Copy the shell script to that folder
  5. Running the following commands to make the script executable and then install:

    View Code at GitHub (Gist)

  6. For that I suggest following these in depth blog posts to get started:

With the setup complete we can now create some projects and run some code. To get started I suggest following these in depth blog posts.

For resources into learning more about Clojure here are a few I’ve collected:

Sorry Firefox. It's not really working out.

Earlier in the week I decided to remove Firefox from my dock on my Macbook as I hardly used it anymore. I had no idea though that a day or two later a new Chrome update for the Mac would be available with new features including extensions, bookmarks manager and bookmark synchronization.

On my PC at home, Chrome has been my main browser for several months. I’ve been really impressed with the better, overall performance. And now with features like bookmark synchronization and extensions.. well it would be to difficult to not make the switch. Sorry Firefox. But you have a lot of catching up to do. Functionally and visually.

Have you made the switch to another browser and if so, why?