News for hackers. Stuff that matters.
Re:Advanced programming languages by francoisdevlin on Monday May 24, 2010 @12:07PM (#1374936)
<contributor-bias>

I seriously think Clojure is too much to take in at the first introduction. It's really hard to get your brain around everything done right, when compared to traditional programming. You need to use it for a while to really get why it's approach to state (not concurrency) is awesome.

</contributor-bias>

Re:Advanced programming languages by KirinDave on Monday May 24, 2010 @01:26PM (#1375130)
I think that this may be a side-effect of the literature, which is very lispy and computer sciency. For someone like me, that's exactly the right tack. For someone who may not take for granted all the claims Rich and his book-writing compatriots are making (let alone take for granted the lisp code-as-data is an foundational revelation of computer science), it may be a problem.

Because really, Clojure is in many ways simpler than both Scala and Java. You can ignore the hard parts (agents, deftype, macros, de-chunking seqs, etc) and just cruise through the easy parts with a fair degree of ease. Everyone understands functions, after all. And Javascript has really pushed the "use functions for everything" approach into the public eye quite nicely.

Re:Advanced programming languages by francoisdevlin on Monday May 24, 2010 @01:50PM (#1375220)
That, and we're still getting our act together in the Clojure world. Stay tuned :)
Re:Advanced programming languages by jacquesm on Monday May 24, 2010 @11:14PM (#1376357)
I keep asking for, and I will do so again here, a non-toy web application written in clojure as a study object for newbies to dissect. That would help a lot.
Re:Advanced programming languages by swannodette on Tuesday May 25, 2010 @12:17AM (#1376475)
What would qualify as non-toy? With Ring and a routing library like Moustache what more do you really need for building a non-trivial web application in Clojure?
Re:Advanced programming languages by jacquesm on Tuesday May 25, 2010 @05:04AM (#1376875)
Well, you outline the problem really nicely there. Never heard of Moustache, and the problem is in figuring out how all the bits go together and what is the 'best' way of doing this in clojure. The learning curve for the language alone is steep enough that having a non-trivial example would do wonders in terms of understanding how a clojure based website works under the hood.
Re:Advanced programming languages by swannodette on Tuesday May 25, 2010 @10:32AM (#1377509)
If you've ever worked with light weight http framework in Python or Ruby, it works exactly the same way.

http://mmcgrana.github.com/2010/03/clojure-web-development-r... http://github.com/cgrand/moustache

There isn't a mature web framework for Clojure yet (for obvious reasons), so there isn't a popular "way". At the moment you have a lot of good libraries and you can put your app together in whatever way seems most sound to you.