Re: Advice for building backend REST services from scratch using clojure

2014-10-08 Thread Daniel Szmulewicz
I felt the Austin pain. Then I discovered figwheel. In one fell swoop, it solved all aforementioned problems. Live coding with Emacs has never been more joyful. https://github.com/bhauman/lein-figwheel On Tuesday, October 7, 2014 7:21:19 PM UTC+3, g vim wrote: On 11/04/2014 09:17, Colin Yates

Re: Advice for building backend REST services from scratch using clojure

2014-10-07 Thread jongwon.choi
With Lispy languages, you can do whatever you want without worrying too much about underlying web server, db, etc. I use my own constructors like: (define-crud-handler :employee [:path [customers cust-id sites site-id employees] :auth-required? true] {:collection {:create (employees-create

Re: Advice for building backend REST services from scratch using clojure

2014-10-07 Thread jongwon.choi
With Lispy languages, you can do whatever you want without worrying too much about underlying web server, db, etc. I use my own constructors like: (define-crud-handler :employee [:path [customers cust-id sites site-id employees] :auth-required? true] {:collection {:create (employees-create

Re: Advice for building backend REST services from scratch using clojure

2014-10-07 Thread gvim
On 11/04/2014 09:17, Colin Yates wrote: * you can fight it as hard as you like but you will eventually end up using emacs, clojure-mode, cider, paredit and magit and then wonder how you ever lived without it, but not without spending at least a month or two cursing anything to do

Re: Advice for building backend REST services from scratch using clojure

2014-10-07 Thread gvim
On 11/04/2014 09:17, Colin Yates wrote: * you can fight it as hard as you like but you will eventually end up using emacs, clojure-mode, cider, paredit and magit and then wonder how you ever lived without it, but not without spending at least a month or two cursing anything to do

Re: Advice for building backend REST services from scratch using clojure

2014-10-07 Thread Colin Fleming
To be fair, Cursive doesn't yet provide a great CLJS REPL solution either, although that is coming soon. Right now, for ease of getting a CLJS REPL up and running Light Table definitely wins. On 8 October 2014 05:20, gvim gvi...@gmail.com wrote: On 11/04/2014 09:17, Colin Yates wrote: * you

Re: Advice for building backend REST services from scratch using clojure

2014-10-06 Thread Colin Yates
Just FYI - I got a new laptop and thought I would give it another look-see. Consider me impressed. I maybe didn't spend enough time with it, but a lot of the rough edges have been smoothed out, the performance seems to have increased, it is just a really nice place to be. To be clear, emacs

Re: Advice for building backend REST services from scratch using clojure

2014-10-06 Thread Colin Fleming
Hey Colin - thanks for the kind words! And I must apologise for my last previous comment too - I actually meant to come back and do so but didn't for whatever reason. It was one of those comments that sounded better in my head than when I saw it written down later - I'm sorry about that. I'm sure

Re: Advice for building backend REST services from scratch using clojure

2014-04-12 Thread Tommi Reiman
Prismatic Schema is awesome for describing the (web) apis, does also validations coersion. Using it in all web projects nowadays. If you are thinking of json apis, swagger is a great tool to publish out the documentation. For clojure at least these schema / swagger-aware web libs do exist:

Re: Advice for building backend REST services from scratch using clojure

2014-04-11 Thread Colin Yates
As others have said - a more focused question would help. Our back end runs on ring + compojure using https://github.com/jkk/honeysql for querying and straight https://github.com/clojure/java.jdbc for writes. We use https://github.com/marick/Midje/wiki rather than clojure.test and

Re: Advice for building backend REST services from scratch using clojure

2014-04-11 Thread Colin Fleming
you can fight it as hard as you like but you will eventually end up using emacs, clojure-mode, cider, paredit and magit and then wonder how you ever lived without it, but not without spending at least a month or two cursing anything to do with emacs :). As the developer of Cursive, I'd like

Re: Advice for building backend REST services from scratch using clojure

2014-04-11 Thread C K Kashyap
Just for the record ... I am an emacs fan :) Had been a vim power user for a long time but switched to emacs after the fp bug bit me. Regards, Kashyap On Fri, Apr 11, 2014 at 2:50 PM, Colin Fleming colin.mailingl...@gmail.comwrote: you can fight it as hard as you like but you will eventually

Re: Advice for building backend REST services from scratch using clojure

2014-04-11 Thread Colin Fleming
Ah, ok - if you're already using Emacs then have at it :-) On 11 April 2014 21:32, C K Kashyap ckkash...@gmail.com wrote: Just for the record ... I am an emacs fan :) Had been a vim power user for a long time but switched to emacs after the fp bug bit me. Regards, Kashyap On Fri, Apr

Re: Advice for building backend REST services from scratch using clojure

2014-04-11 Thread Colin Yates
Colin - you are right - I shouldn't throw out such inflammatory marks, particularly when they do a disservice to the excellent work done in Cursive Clojure, Lighttable and Counter Clockwise (and others that I am not aware off). For me personally, after years of using Eclipse then IntelliJ and

Re: Advice for building backend REST services from scratch using clojure

2014-04-11 Thread rossputin
My two cents... Ring/Compojure, Friend, Datomic. I've had these in production since 2012, no issues really and its still fun to hack on them. On Thursday, 10 April 2014 15:13:19 UTC+1, Kashyap CK wrote: Hi, I have the opportunity to build a set of services from scratch. I plan to use

Re: Advice for building backend REST services from scratch using clojure

2014-04-11 Thread Colin Fleming
No worries, I didn't think what you wrote was inflammatory and it's undeniable that Emacs has the largest mindshare in the Clojure world. But the alternatives are getting better and better and I think I could make a reasonable case that Cursive is better than Emacs for some circumstances and/or

Re: Advice for building backend REST services from scratch using clojure

2014-04-11 Thread Erik Bakstad
You should take a look at Liberatorhttp://clojure-liberator.github.io/liberator/ for the REST services. We're using it at Ardoq http://ardoq.com to build our REST-APIs and we are very happy with it. kl. 16:13:19 UTC+2 torsdag 10. april 2014 skrev Kashyap CK følgende: Hi, I have the

Re: Advice for building backend REST services from scratch using clojure

2014-04-11 Thread danneu
Play around with this: $ lein new compojure myapp $ cd myapp $ lein ring server-headless Started server on port 3000 On Thursday, April 10, 2014 9:13:19 AM UTC-5, Kashyap CK wrote: Hi, I have the opportunity to build a set of services from scratch. I plan to use clojure for

Advice for building backend REST services from scratch using clojure

2014-04-10 Thread Kashyap CK
Hi, I have the opportunity to build a set of services from scratch. I plan to use clojure for this. I'd like to experiment with options available out there - options such as - what webserver, what database etc. I'd like it very much if you could share some of your experiences in this and

Re: Advice for building backend REST services from scratch using clojure

2014-04-10 Thread Arun Augustine
Look into: https://github.com/pedestal/pedestal http://www.datomic.com/ On Thursday, 10 April 2014 07:13:19 UTC-7, Kashyap CK wrote: Hi, I have the opportunity to build a set of services from scratch. I plan to use clojure for this. I'd like to experiment with options available out there -

Re: Advice for building backend REST services from scratch using clojure

2014-04-10 Thread Leif
I think you are not getting a lot of replies because a question about generic services leaves the design space way too large. The choice of webserver and especially the database are going to depend strongly on the required throughput, latency, access patterns, lots of other things I'm not

Re: Advice for building backend REST services from scratch using clojure

2014-04-10 Thread Kashyap CK
Thanks Leif and Arun ... I will try out your suggestions. I'll have something up and play a bit and come back with more specifics. Regards, Kashyap On Friday, April 11, 2014 6:53:04 AM UTC+5:30, Leif wrote: I think you are not getting a lot of replies because a question about generic