On Jan 2, 11:50 am, Mike Meyer <mwm-keyword-googlegroups. 620...@mired.org> wrote: > There are definitely some good ideas there - and I agree with most of > the goals. But Lift, like most other page-centric web frameworks, > seems to break one of the fundamental rules of good API design: Simple > things should be simple.
Having implemented a small site in Lift, I'd have to agree that it makes some simple things verbose. However, it's hard to get simpler than code that's already written for you, even if you have to tweak it for your needs. Lift is more mature than options available in Clojure, which means a lot of code I didn't have to write. > After looking at the Lift documentation, it's clear that Clojure has > two major disadvantages when compared to Scala for doing this kind of > thing: 1) Support for XML as a primitive type. That's just way cool. Having implemented essentially identical xml processing code in both scala and clojure, I'd have to disagree with this. I was never a big xpath user, so the pseudo-xpath syntax of scala doesn't matter much to me. Clojure's zippers are a really nice way of "modifying" xml, imho nicer than the typical scala way of doing a pattern match (with 5 underscores in it more often than not) and then calling a constructor for a new xml element. XML literals in scala vs s-exp literals in clojure is kind of a wash, _unless_ you need designers to work on your xml. Letting designers easily work on xml is a pretty important point, and one where the existing Compojure / Conjure projects fall short. Enlive is about as clean as you could ask for in this respect, though, even cleaner than Lift, so I don't think this is inherently a language issue. > 2) The web has a natural mapping to OO concepts, so the mixed > functional/oo model in Scala helps a lot. As for the OO vs functional . . . a web server is a function from a request to a response. How is that functional view any less natural than an OO view? -- 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