Your SlideShare is downloading. ×
  • Like
  • Save
Upcoming SlideShare
Loading in...5

Thanks for flagging this SlideShare!

Oops! An error has occurred.


Now you can save presentations on your phone or tablet

Available for both IPhone and Android

Text the download link to your phone

Standard text messaging rates apply



Lightening talk on Scala's Lift web framework..

Lightening talk on Scala's Lift web framework..

Published in Technology , News & Politics
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Be the first to comment
    Be the first to like this
No Downloads


Total Views
On SlideShare
From Embeds
Number of Embeds



Embeds 0

No embeds

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

    No notes for slide


  • 1. Ikenna Okpala Twitter:@kengimel 3rd November 2010 Lightening Talk on Scala's Lift Web Framework
  • 2. Lift Web: Introduction  Lift is a web application framework written in Scala and Created by David Pollak (@dpp on twitter).  To me it is expressive and elegant also caters for maintainability, scalability and performance.  Design goals are security, conciseness and performance.  It is an abtraction of the HTTP request cycle.  Continually bringing the best of other web frameworks and conceptsunder on umbrella.
  • 3. Lift Web: ”View First” Approach  Lift's approach is coined the “View First” design ”You can think of Lift as having a modified  Model View Presenter (MVP) that for the  purpose of this discussion we shall refer to as  View­ViewModel­Model (V­VM­M)” (Perrett,  2011, Lift in Action)
  • 4. Lift Web : ”View First” Approach Allows Invalid States. VIEW TEMPLATES <<STATEFUL>> VIEW/MODEL SNIPPET MODEL Change Notification Error Notices Execute Commands Apply / Commit ADAPTED FROM LIFT IN ACTION MEAP EDITION FOUND AT:
  • 5. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" ""> <html xmlns=""> <head>ljcexample</head> <body> <h1>Hello World</h1> The Time is: <lift:HelloWorldSnippet> date is rendered here </lift:HelloWorldSnippet> </body> </html> Lift Web: Hello World VIEW
  • 6. package ljcexample.snippet import _root_.scala.xml.NodeSeq import{Date} case class myModel(mydate: Date) class HelloWorldSnippet { val today = myModel(new Date) def render(in: NodeSeq): NodeSeq = <span> {today.mydate.toString} </span> } Lift Web: Hello World VIEW/MODEL
  • 7. Why Lift ?  More powerful HTTP request / response control  Functional conciseness  Pattern macthing  Hign order functions  case classes (for modelling and data tranfer or VO)  Better OO modeling with Scala (using traits etc..)  Easier and friendly use of XML.  Leveraging Scala Actors library  Great community, fast responses.
  • 8. Lift Web: Getting Started  Lift's Home @ and  SBT and Lifty..  Getting started chat example from  Scala Lift Off Videos On Skills Matter Website at this address:  Join the London Scala User Group and Lift's mailing list  Lift in Action by Tim Perrett due Feb. 2011, MEAP version found here:
  • 9. THANKS
  • 10. THANKS