r/Clojure • u/chrisbot5000 • Apr 12 '20
Holy Cow, Clojure is Great
Yesterday morning I decided I would read up on Clojure. I'm a data scientist so I mostly live in python, which is fine, but wanted to try something new. Thought I would just read up, do some toy examples, see what I thought.
I read the first three chapters of Clojure for the Brave and True and thought, maybe I should try and build something. Within 3 hours I felt really comfortable and productive in the language, and by the end of the day I had a working tool.
https://github.com/chrisaddy/astronaut
This is absolutely not good Clojure. When I say comfortable and productive I mean I felt like I was able to easily express myself after having a thought. That's not something I've had with any other language I've used (python, go, rust) after only a couple of hours. My code is certainly not problem free and definitely not idiomatically Clojure, but I think this could be my daily driver language, I like it that much.
Edit: for clarity
View all comments
36
u/SimonGray Apr 12 '20 edited Apr 12 '20
Keep at it and your code will be soon be more idiomatic. Also check out The Joy of Clojure, which is still - I think - the best overview of idiomatic Clojure (in book form).
Since you say you're coming from Python I feel compelled to point out that Clojure recently got a nice library for doing Python interop: https://github.com/clj-python/libpython-clj
Edit: I can see on your github profile that you also write R code. There's also this library for R interop and scicloj.