Re: feedback on first compojure app: Sportello

2011-03-13 Thread himangshu hazarika
you can also use clj-stringtemplate https://bitbucket.org/kumarshantanu/clj-stringtemplate it can pull stuff from classpath On 10 January 2011 05:22, Alex Baranosky wrote: > Thanks for the help James, I appreciate the points for imp

Re: feedback on first compojure app: Sportello

2011-01-09 Thread Alex Baranosky
Thanks for the help James, I appreciate the points for improvement. I'll look into lein ring as soon as I can. -- 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 memb

Re: feedback on first compojure app: Sportello

2011-01-06 Thread James Reeves
I note that the stringtemplate-clj library defaults to using directory paths only, but StringTemplate itself can pull templates from the classpath as well. If you placed your templates in "resources/templates" and used StringTemplate directly, you wouldn't have to worry about where the template dir

Re: feedback on first compojure app: Sportello

2011-01-05 Thread Alex Baranosky
I defined it as: (defn zip [seq-of-seqs] (apply map list seq-of-seqs)) -- 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

Re: feedback on first compojure app: Sportello

2011-01-05 Thread Ken Wesson
On Wed, Jan 5, 2011 at 10:09 PM, Alex Baranosky wrote: > Thanks for the feedback Timothy, it is appreciated. > map-by key is a good name, I'll change it to that. > As far as I understand zip is different than flatten. > (zip [[1 2] [3 4]]) => ((1 3) (2 4)) > (zip [[1 2 3] [4 5 6]]) => ((1 4) (2 5)

Re: feedback on first compojure app: Sportello

2011-01-05 Thread Alex Baranosky
Thanks for the feedback Timothy, it is appreciated. map-by key is a good name, I'll change it to that. As far as I understand zip is different than flatten. (zip [[1 2] [3 4]]) => ((1 3) (2 4)) (zip [[1 2 3] [4 5 6]]) => ((1 4) (2 5) (3 6)) -- You received this message because you are subscrib

Re: feedback on first compojure app: Sportello

2011-01-05 Thread Timothy Pratley
On Sun, Jan 2, 2011 at 11:30 AM, Alex Baranosky wrote: > Any comments on style, technique or just anythings I missed would be greatly > appreciated.  I'm really trying to expand my horizons and perfect the app as > a kind of kata. Sophisticated! I like it. I will take exception to the naming of "

feedback on first compojure app: Sportello

2011-01-02 Thread Alex Baranosky
Hello everyone, Sean Allen inspired me to share the web app I've been playing with to learn Compojure. It's codenamed Sportello and is a simple app that uses the Google Maps API to calculate an estimated amount of miles you'll have to travel from a certain place depending on where you live and ho