News for hackers. Stuff that matters.
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.