Re: My first clojure web app

2011-01-10 Thread Sean Allen
On Wed, Jan 5, 2011 at 9:21 PM, Timothy Pratley timothyprat...@gmail.comwrote: Neat, looks pretty nice. I love invitations to nit pick! database.clj (defn complete-todo [id] (dosync (ref-set *todo* (vec (remove #(= (get % :id) id) @*todo*) 1) ref-set is unnecessary you could re-factor

Re: My first clojure web app

2011-01-05 Thread Timothy Pratley
Neat, looks pretty nice. I love invitations to nit pick! database.clj (defn complete-todo [id] (dosync (ref-set *todo* (vec (remove #(= (get % :id) id) @*todo*) 1) ref-set is unnecessary you could re-factor this to use alter. The result is the same, but semantically set only applies when

My first clojure web app

2011-01-02 Thread Sean Allen
I finally moved on from messing around with stuff in the repl and trying to get a firm grasp on all things clojure and dove into doing a little web development with it. I hadn't used ring, compojure or enlive before so I kept that functionality in the app really minimal. I'd appreciate feedback