Live data from Hacker News

The best Web Framework - what makes Lift different

seventhings.liftweb.net

51–60 of 79 posts

Re: The best Web Framework - what makes Lift different

#51

Is supergluing your framework to the dom really a feature?

If you want to have your dom events be handled server-side, then it is. It also lets you do things like have a dom node be bound to the state of a server-side object so the dom contents are updated when the server-side object's contents are changed -- it just takes care of the plumbing for you.

How well does Lift work if you want your applications to still work with JavaScript disabled?

Re: The best Web Framework - what makes Lift different

#52
post #23

Earlier quoted context omitted.

I think that the author is coming from the Java world, in which case the comparison he likely had in mind is not Rails or django, but the plethora of Java web frameworks. Personally, for Java Web Frameworks there are two I like, for quite different reasons. The first is Spring MVC. the rest of Spring can go die in a fire for all I care, but the Spring MVC part is quite nice. Used properly it allows you to very quickl…

Naive question here (I've worked on web apps, but it was using Java technology of the circa 2000 vintage, so my knowledge is quite limited). It seems to me that it would be really nice for a developer to be able to treat html/javascript/css similar to the way that developers today treat assembler - a very low-level way to the browser to do exactly what you want, but something that the large majority of programmers do…

As long as there are lots of competing, frequently changing browsers, anything that treats HTML/JS/CSS as assembler is going to be a dangerously leaky abstraction.

Re: The best Web Framework - what makes Lift different

#53
post #44

What's not mentioned (it's hard to sell) is, 50%+ of the reason Lift is so fabulous is, you're writing Scala. It's a mighty upgrade in quality of life, from either Ruby, Java or Python. By corollary, what's being omitted is, the learning curve is steep. Scala isn't super-easy, and Lift dives fairly deep into the more complex stuff - implicits, currying, etc. Nor is Lift itself all too well documented just yet. Yes, t…

Two books on Lift? All I know about is the Apress book, which significantly lowered my opinion of Apress. What's the other?

Re: The best Web Framework - what makes Lift different

#54
post #53
post #44

What's not mentioned (it's hard to sell) is, 50%+ of the reason Lift is so fabulous is, you're writing Scala. It's a mighty upgrade in quality of life, from either Ruby, Java or Python. By corollary, what's being omitted is, the learning curve is steep. Scala isn't super-easy, and Lift dives fairly deep into the more complex stuff - implicits, currying, etc. Nor is Lift itself all too well documented just yet. Yes, t…

Two books on Lift? All I know about is the Apress book, which significantly lowered my opinion of Apress. What's the other?

A couple possible matches:

Exploring Lift: http://exploring.liftweb.net/

Lift in Action MEAP: http://www.manning.com/perrett/

Re: The best Web Framework - what makes Lift different

#55
post #32

Earlier quoted context omitted.

I think that the author is coming from the Java world, in which case the comparison he likely had in mind is not Rails or django, but the plethora of Java web frameworks. Personally, for Java Web Frameworks there are two I like, for quite different reasons. The first is Spring MVC. the rest of Spring can go die in a fire for all I care, but the Spring MVC part is quite nice. Used properly it allows you to very quickl…

Dave Pollak has worked in Rails for a long time. JRuby support is on the way for lift too. shrug If Java is a necessity, Play! is a breath of fresh air.

In my very humble (and inexperienced) opinion, Play! is the closest you're going to get to the development speed of Rails or Django and their ilk while still using Java.I recently finished writing a small app in it for a school project, and it was nothing but enjoyable. Not in love with the templating, but everything else was a joy.

Re: The best Web Framework - what makes Lift different

#56
post #54
post #53

Earlier quoted context omitted.

Two books on Lift? All I know about is the Apress book, which significantly lowered my opinion of Apress. What's the other?

A couple possible matches: Exploring Lift: http://exploring.liftweb.net/ Lift in Action MEAP: http://www.manning.com/perrett/

exploring lift is the free (and more updated) version of the apress book. Lift in action is not completed yet, but already provides a nice starting point to Lift. It has a tutorial like feel to it. http://stable.simply.liftweb.net/ is the founders book, which has been in the workings for a couple of months only.

Re: The best Web Framework - what makes Lift different

#57
post #7

Hm. Lift even works on Google App Engine. Pretty nice: http://www.scala-lang.org/node/1826 That would take the pain out of deploying an app.

An example app running in app engine: http://lift-example.appspot.com/ Please notice that comet (and actors in general) does not work on app engine. If you are comfortable in linux it is pretty easy to copy jetty and a war to a vps like linode.com. For a more app-engine like experience the newly announced amazon beanstalk might be a pretty good choice, but i have not tried it yet.

Re: The best Web Framework - what makes Lift different

#58

1. Fetching content with AJAX and placing it into the DOM is "supported" by every web framework in existence. 2. Proxying ads through your own backend that threads itself? Yawn. 3. AJAX and COMET have pretty standard support. Again, this is left up to you with your Javascript library of choice. 4. Again, this is Javascript work. It might save me a little bit of development time, but I'd much rather be in complete con…

3. Ajax support seems pretty common but Comet seems pretty rare. Most major Javascript libs seem to have little or no support for Comet. Also, server side support for Comet seems even rarer. 4. Declarative syntax for dependencies seems much simpler than imperatively updating dependencies in Javascript 5. This one isn't presented very well. Essentially, all server side presentation logic is done in Scala code rather t…

Re: 5., the Scala syntax isn't awkward to work with at all. In fact, it's based on CSS. For example:

shadowfiend Person Name Hometown, ST

class Users { lazy val users = User.findAll() def userList = { ".user" #> users.map { user => ".username" #> user.username & ".name " #> user.name & ".hometown " #> (user.hometown + ", " + user.state) } } }

Re: The best Web Framework - what makes Lift different

#59
post #51

Earlier quoted context omitted.

If you want to have your dom events be handled server-side, then it is. It also lets you do things like have a dom node be bound to the state of a server-side object so the dom contents are updated when the server-side object's contents are changed -- it just takes care of the plumbing for you.

How well does Lift work if you want your applications to still work with JavaScript disabled?

It's possible to do, but by default Lift's form element bindings are done in a stateful way, and your session's lifetime is determined by an occasional AJAX heartbeat request. In short, while you can write applications that should work with JS disabled, you lose many things that make it awesome.

Re: The best Web Framework - what makes Lift different

#60
post #3

Just out of curiosity can you highlight the advantages lift has over other modern frameworks such as rails or django (and maybe some of the php frameworks). Most (or all) of the 7 things ship with rails 3. Stacking them up against one another might yield a better comparison.

List the ones that Rails does and how you achieve them (briefly). I'm pretty damn good with Rails, and it doesn't do a good chunk of this stuff, much as I love it.
Post reply on HN