Learning Clojure

- - posted in clojure, ruby | Comments

Some notes on learing Clojure

http://jrheard.tumblr.com/post/40024238467/getting-started-with-clojure

  • Clojure –> Ruby
  • Leiningen –> Bundler, IRB
  • Rubygem –> JAR
  • Rubygems.org –> ?
  • Ruby Toolbox –> ?

Side by side Ruby against Clojure.

1
require 'http'
1
(require '[clj-http.client :as client])')
1
HTTPClient.get('http://yelp.com')
1
(client/get "http://www.yelp.com")
1
puts HTTPClient.get('http://google.com').body[0..49].join
1
(println (apply str (take 50 (:body (client/get "http://google.com")))))

Comments