CSC/ECE 517 Fall 2014/ch1a 4 lf: Difference between revisions
(→Lift) |
|||
Line 25: | Line 25: | ||
== Examples == | |||
== Helpful Links == | == Helpful Links == | ||
== References == | == References == |
Revision as of 17:59, 14 September 2014
Lift is a web application framework designed for Scala Programming Language. It was designed by David Polka who was dissatisfied with Ruby on Rails. It was launched on February 26, in 2007 as an Open Source framework under the Apache 2.0 License.
Background
Scala
Scala stands for "Scalable Language". The Scala programming language can be used for making general software application, or for web development. Scala is a pure-bred object-oriented language: Every value is an object, and every operation is a method call. The language is quite similar to Ruby
The biggest difference between Ruby and Scala is that, Scala runs on the Java Virtual Machine. Thus, it is possible to mix up Java and Scala. Both the languages can be used together for a single project; Scala code can refer the Java code and Java code can refer Scala code without any errors turning up.
Scala is an Object-Functional programming and scripting language. The language uses very strong static type system and the compiler deciphers the types of the variables used. Just like Ruby, programs written in Scala can be very concise and thus, are smaller in size than in most languages.
Lift
Lift is an expressive framework for writing web applications using Scala. It borrows concept from Grails, Ruby on Rails, Seaside, Wicket and Django.
Just like Rails, it favors convention over configuration: it decreases the number of decisions that developers need to make. But, unlike Rails, it does not follow the Model-View-Controller concept. It rather follows the "View First" approach.
As Lift is a framework for Scala and Scala is very compatible with Java, any and all of the java libraries and web containers can be used in running Lift applications.
Dynamic web content is authored into the web pages via templates using the standard HTML5 or XHTML editors. It also provides native support for advanced web development techniques such as Comet and Ajax.
The main characteristics of the Lift framework are: