On Sat, 2 Jan 2010 07:01:20 -0800 (PST) ngocdaothanh <ngocdaoth...@gmail.com> wrote:
> Scala has Lift with many advanced features: > http://blog.lostlake.org/index.php?/archives/16-Web-Framework-Manifesto.html > http://blog.lostlake.org/index.php?/archives/25-Why-the-world-needs-another-web-framework.html 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. I.e. - the simple "hello world" application requires three different files in three different languages (or two, if you consider two different XML schema to be "the same language"). This can hardly be considered simple. Why on earth should it take more than one beyond whatever it takes to connect it to a web framework? > If a similar (or better) web framework is written in Clojure, how will > it be implemented? I've spent the last few days contemplating just this question. More accurately, I've been considering how to build a web framework modeled on Seaside for Clojure. 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. 2) The web has a natural mapping to OO concepts, so the mixed functional/oo model in Scala helps a lot. Basically, the issues I've been dealing with for Clojure become trivial with Scala. > Which existing Java libraries can be used to save time? Good question. I'm not a Java person - I looked at it a decade ago, decided it wasn't mature yet, and have been ignoring it since. I now find myself thrown into the deep end evaluating Java web frameworks to see if any can be co-opted for what I have in mind. Seems like the natural place to start is the ability to build servlets, and those can be grafted into whatever larger framework the user wants, but another two days of wading through documentation could change my mind. <mike -- Mike Meyer <m...@mired.org> http://www.mired.org/consulting.html Independent Network/Unix/Perforce consultant, email for more information. O< ascii ribbon campaign - stop html mail - www.asciiribbon.org -- 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