On Mon, Nov 23, 2009 at 03:00:16PM -0800, Raoul Duke wrote:

>i'd be interested to hear who has successfully used clojure in
>production. i know of some, as some folks have been vocal; any other
>interesting-but-so-far-silent uses people'd be willing to fess up
>about?

I've thrown together a small clojure program to present an internal
dashboard of active projects and states and stuff.  Having the JVM was
invaluable, since I could easily make postgreSQL queries as well as
use JGit to walk the history of a git repository.

I've mentioned this before, but <http://github.com/d3zd3z/webweight>
is a small program I wrote to learn compojure.

One significant part is that I've written an org.davidb.contrib.html
and xml that wrap around the same data structure used by clojure.xml.
It allows for easier construction of html/xml in code:

   (html/table :border "1"
     (html/tr
       (html/td :valign "top" "Cell") ..))

I also wrote an html/xml emitter that uses ones from the standard Java
libraries, since the one in clojure.xml doesn't actually generate
valid xml.

The other interesting part of webweight is that the build.xml and the
ivy and files under etc are sufficient to build most Clojure projects.
It's similar to the idea behind Leiningen, but it will also build Java
and native code into the project as well.

The production webpage is internal, and has a lot more data on it, but
I've captured and scrubbed a snapshot
<http://www.davidb.org/dashboard/sample.html>

I was able to throw the whole thing together in just a couple of days
using Clojure.  I haven't really felt this productive writing code
since using Common Lisp.

David

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

Reply via email to