fanvie, two comments: 1. It will get better over time, of course, as standard practices for Clojure shake out. 2. You don't need 99% of the special crap that Spring/Grails gives you. Clojure's abstractions are smaller, yes, but the're just as powerful, and give you more control, in a more standardized way, then Spring does.
A couple of examples: A. Beans & wiring. Spring adds a lot of value in Java - the whole problem they solve, however, is completely irrelevant in Clojure. Instead of stateful or singleton beans, just use a namespace filled with functions. Equally as versatile, equally as configurable, much less mental and typographical overhead, and all within the language itself without requiring extra config. If you want another layer of indirection between your caller and callee, it's trivial to def that out, too. B. Security integration. Spring gives you elaborate security-filter- chains that manage request and session scoped authorization and user objects, all of which wrap the basic servlet API. Clojure, with stateless first-class functions, makes this far simpler. In Ring, for example, all your security functions can be implemented as middleware that just throws a :user onto the request map. I've done it - it's literally easier to write a Clojure middleware function that handles authentication from scratch than it is to figure out how to wire in whatever spring security filter you need. And all the code you need to write is actually 100% relevant to your authentication logic. To my mind, this is a vast improvement over Spring, where the few nuggets of actual logic are lost in a sea of Java filters, wrappers and xml configuration files. The same holds true of most other Spring/Grails idioms, such as MVC, JDBC access, AOP, etc. On Nov 1, 5:34 pm, faenvie <fanny.aen...@gmx.de> wrote: > my short-time experience with implementing webapps on > a clojure-base is: > > i feel like in the very early days of java-servlet-api and j2ee. > > productivity way way way behind springframework or grails > > i don't even want to think about doing something sophisticated > like security-integration. > > and of course this is not surprising because everything is > new and much things are built up from scratch. > > esp. when it comes to build and webapp-deployment i feel a > mismatch that hurts. > > (this is an average java-programmer with 2+ years experience > in implementing webapps with springframework and grails) > > thanks & have a successful time -- 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