Live data from Hacker News

Clojure Programming

clojurebook.com

31–37 of 37 posts

Re: Clojure Programming

#31

Earlier quoted context omitted.

If you love Java and want a magnitude of libraries, and don't have any particular attachment to Lisp syntax or dynamic typing (which 'love Java' seems to imply), then it would benefit you to check out the Play [1] and Lift [2] frameworks as well. Lift is Scala-based but is 100% interoperable with Java libraries, and Play apps can be written in either Java or Scala and is also 100% interoperable with Java. Play is qui…

Thanks SkyMarshal, I use Play all of the time. I've never tried Lift though--I might give that a go soon as well. I'm curious about whether or not there is a framework of Clojure however. From the responses, it seems like Noir is the popular solution these days :-)

Note that everybody says Noir because Noir is the only thing that could be called a 'framework'. I pretty sure most clojure webapps are not written in Noir itself, people use all kinds of diffrent combinations of librarys to gather alot of the feature a framework would give you.

Re: Clojure Programming

#32
Now that you've written a full technical book, what are your thoughts about how technical book publishing is done and how it can both better serve the authors creating the content and be better presented to your readers?

Re: Clojure Programming

#33
post #30

Anyone have insight into how this might complement / compare with "The Joy of Clojure" http://joyofclojure.com/the-book ? At first glance, having read JOC and seeing the TOC for this new book, what most piques my interest are the sections on macros, protocols, and the web stuff.

I imagine that Clojure Programming is going to be similar to Programming Clojure, when compared to the others (for a better rundown of others books: http://stackoverflow.com/a/2928998) Or as this answer from SO puts it, Clojure Programming probably teaches the "what" of Clojure: http://stackoverflow.com/a/2579877

Personally, I think Joy of Clojure is the "why" as well as "how to do it well". I learned the "what" mostly from Practical Clojure, which was good enough, but definitely not great. Programming Clojure (2nd ed. for clj v 1.3, still in progress) seems organized like a conversation in chapters, i.e., you'd have to read it entirely sequentially, and targeted random-access might be difficult for first-time learners. I don't how Clojure Programming will be, but I hope it raises the bar for teaching newbies.

Re: Clojure Programming

#34
is anyone putting Clojure to good use? i've been reading about it for a while, but still can't find a practical use for it. i know .Net framework in and out, and it just makes everything so easy.. not sure what Clojure could offer me at this stage, even though i love its notation (the little that i know so far).

Re: Clojure Programming

#36

is anyone putting Clojure to good use? i've been reading about it for a while, but still can't find a practical use for it. i know .Net framework in and out, and it just makes everything so easy.. not sure what Clojure could offer me at this stage, even though i love its notation (the little that i know so far).

The truth is, if you're a .NET programmer, you're going to find Clojure slightly painful because you're switching ecosystems. Using it for work will encounter the same problem and ClojureCLR is a second class citizen.

That's not to say it isn't great and useful, it is. I'm noticing a couple of trends in Clojure development: big data and esoteric. Take a look at Storm (twitter's data processing engine) and Overtone.

Re: Clojure Programming

#37
post #35

Why Clojure? What makes it better than anything from the huge range of choice developers already have?

Very quickly: Simplicity, Speed, Power.

Simplicity: it's easier to reason about a Clojure program. Speed: Idiomatic Clojure tends to be as fast as Java when it matters. Power: If an abstraction you need isn't present, you can write your own. Code reuse is insanely high.

Post reply on HN