Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Medium-size Clojure sample application?

Is there a medium-sized Clojure sample application that could be used as a "best-practices" example, and a good way to see what such an application would look like in terms of code and code organization? A web application would be particularly interesting to me, but most important is that the program do something commonly useful (blog, bug-tracking, CMS, for example), and not something mathematical that I've never ever had to implement in the real world (solving the N-queens problem, simulating Life, generate Fibonacci sequences, and such usual fare of function programming languages).

Thanks!

like image 824
foxdonut Avatar asked Nov 30 '08 19:11

foxdonut


3 Answers

I recommend cow-blog by Brian Carper. According to the author it was written with your purpose in mind.

like image 50
mac Avatar answered Nov 11 '22 14:11

mac


If you browse the clojure-contrib source code you can see how libraries are implemented in clojure.

You can also checkout "ClojureScript" under the same source tree.

Allows code written in a very small subset of Clojure to be automatically translated to JavaScript.

The ClojureScript translator is a full Clojure app.

I'd also recomend checking out the Stewart Halloway's Port of Practical Common Lisp samples to Clojure if you haven't already.

like image 29
Brian Gianforcaro Avatar answered Nov 11 '22 14:11

Brian Gianforcaro


Take a look at Compojure. It's a web framework written in Clojure, so it allows you to write and run (on an embedded Jetty) useful web apps in Clojure, and also serves as a good example of a sizable chunk of real-world Clojure code.

It's under active development and has a helpful Google Group.

like image 24
Christian Berg Avatar answered Nov 11 '22 13:11

Christian Berg