3 ms·
What do your superiors think about implementing new, small projects in Clojure? When you say "has a huge amount of useful libraries" but then say that Python i
by tesmar2 14y ago
What do your superiors think about implementing new, small projects in Clojure?
When you say "has a huge amount of useful libraries" but then say that Python is "batteries included", which libraries in Clojure are particularly useful? Which ones did you wish it had?
- jrheard 14y ago1) Remains to be seen :) 2) I used those two phrases interchangeably - I consider both Clojure and Python as "batteries-included" languages. Case in point - before I was aware that Clojure Toolbox existed, I was able to google "clojure http request" and find several libraries that let me perform HTTP requests programmatically that I could include in my project.clj and start using right away. My memory's a little fuzzy, so apologies if this is completely wrong, but I don't recall having as easy a time doing that in e.g. Common Lisp or Haskell. As far as which libraries in Clojure are particularly useful - Ring and Compojure are fantastic, and core.logic[0] is extremely interesting; I'll write a blog post showcasing core.logic (and using it for my first time ever) at some point. Midje is great for writing unit tests. I've only been using Clojure for a few months, so I can't point to too many others that have really been extremely useful for me, but I definitely recommend checking out the Clojure Toolbox[1] for a more thorough list of the main contenders. [0] https://github.com/clojure/core.logic/wiki/A-Core.logic-Primer https://github.com/clojure/core.logic/wiki/A-Core.logic-Prim... [1] http://www.clojure-toolbox.com http://www.clojure-toolbox.com
- jimbokun 14y agoIf you don't find a Clojure library meeting your needs, you can always find a Java library for that purpose and "wrap the crap". http://news.ycombinator.com/item?id=1883043 http://news.ycombinator.com/item?id=1883043
- straws 14y agoTo me, this is the smartest part of using Clojure in your projects. If you're a company with an enormous Java stack, it's trivial to add things like Clojure or Scala and use them as scripting languages. Or break out a library and rewrite it using one of the two, if that problem would be better solved more functionally. Basically it makes it easy to convert projects without tearing down your infrastructure, ie, easy to convince your boss.