SimonRedfern 45 Followers

CEO of TESOBE / Music Pictures Ltd, founder of the Open Bank Project. I'm a programmer and composer and Supa' proud dadda.

Location: Berlin, Germany

Quick Links

View Show Available Profiles

Authors (1)

Simon Redfern

Related Projects / Groups


Scala and Scala web frameworks

Public Techy posted on Wed, 31 Aug 2011 by Simon Redfern


Now I'm looking into Scala!

<span class="http-markup"><a href="http://www.scala-lang.org/" rel="nofollow">http://www.scala-lang.org/</a></span>

<span class="http-markup"><a href="http://www.scala-lang.org/api/current/index.html#package" rel="nofollow">http://www.scala-lang.org/api/current/index.html#package</a></span>

<span class="http-markup"><a href="http://www.artima.com/scalazine/articles/package_objects.html" rel="nofollow">http://www.artima.com/scalazine/articles/package_objects.html</a></span>

<span class="http-markup"><a href="http://www.scala-lang.org/node/198" rel="nofollow">http://www.scala-lang.org/node/198</a></span>

<span class="http-markup"><a href="https://github.com/joulieboolie/scala-cheatsheet" rel="nofollow">https://github.com/joulieboolie/scala-cheatsheet</a></span>

code examples: <span class="http-markup"><a href="http://www.cs.helsinki.fi/u/wikla/OTS/Sisalto/examples/index.html" rel="nofollow">http://www.cs.helsinki.fi/u/wikla/OTS/Sisalto/examples/index.html</a></span>

<span class="http-markup"><a href="http://www.vogella.de/articles/Scala/article.html" rel="nofollow">http://www.vogella.de/articles/Scala/article.html</a></span>

Scala operators: <span class="http-markup"><a href="http://jim-mcbeath.blogspot.com/2008/12/scala-operator-cheat-sheet.html" rel="nofollow">http://jim-mcbeath.blogspot.com/2008/12/scala-operator-cheat-sheet.html</a></span>

99 Scala problems: <span class="http-markup"><a href="http://aperiodic.net/phil/scala/s-99/" rel="nofollow">http://aperiodic.net/phil/scala/s-99/</a></span>

Try it out online: <span class="http-markup"><a href="http://www.simplyscala.com/" rel="nofollow">http://www.simplyscala.com/</a></span>

 

It looks nice (syntax is quite Pythonic), (but type safe) and seems to be an advanced, modern language with functional aspects. It runs in the JVM and is compatible with Java libraries.

Akka is some middleware built on Scala and there's a company that packages them in an easy install:

<span class="http-markup"><a href="http://typesafe.com/technology/akka" rel="nofollow">http://typesafe.com/technology/akka</a></span>

Web frameworks are Lift (used by 4square).

<span class="http-markup"><a href="http://www.liftweb.net/" rel="nofollow">http://www.liftweb.net/</a></span>

for instance: <span class="http-markup"><a href="http://lift.la/scala-option-lift-box-and-how-to-make-your-co" rel="nofollow">http://lift.la/scala-option-lift-box-and-how-to-make-your-co</a></span>

http response cycle: <span class="http-markup"><a href="http://www.assembla.com/spaces/liftweb/wiki/HTTP_Pipeline" rel="nofollow">http://www.assembla.com/spaces/liftweb/wiki/HTTP_Pipeline</a></span>

content types: <span class="http-markup"><a href="http://www.assembla.com/wiki/show/liftweb/HtmlProperties_XHTML_and_HTML5" rel="nofollow">http://www.assembla.com/wiki/show/liftweb/HtmlProperties_XHTML_and_HTML5</a></span>

video interview: <span class="http-markup"><a href="http://www.infoq.com/interviews/Lift-Scala-David-Pollak" rel="nofollow">http://www.infoq.com/interviews/Lift-Scala-David-Pollak</a></span>

nice simple example of displaying records in a table <span class="http-markup"><a href="http://www.getslimstack.net/example1/#chap6" rel="nofollow">http://www.getslimstack.net/example1/#chap6</a></span>

<span class="http-markup"><a href="http://www.getslimstack.net/example1/#chap9" rel="nofollow">http://www.getslimstack.net/example1/#chap9</a></span>

this is where the lift community is at: <span class="http-markup"><a href="http://groups.google.com/group/liftweb/topics" rel="nofollow">http://groups.google.com/group/liftweb/topics</a></span>

examples: <span class="http-markup"><a href="http://demo.liftweb.net/ws" rel="nofollow">http://demo.liftweb.net/ws</a></span>

Docs are not so easy to find. About json / lift <span class="http-markup"><a href="https://github.com/lift/lift/tree/master/framework/lift-base/lift-json/" rel="nofollow">https://github.com/lift/lift/tree/master/framework/lift-base/lift-json/</a></span>

 

<span class="http-markup"><a href="http://simply.liftweb.net/index-5.4.html" rel="nofollow">http://simply.liftweb.net/index-5.4.html</a></span>

Apparently Lift is very secure out of the box. (as tested by Yahoo security guy):

<span class="http-markup"><a href="http://twitter.com/#!/rasmus/status/5929904263" rel="nofollow">http://twitter.com/#!/rasmus/status/5929904263</a></span>

Also one can use Play (originally for Java)

<span class="http-markup"><a href="http://scala.playframework.org/" rel="nofollow">http://scala.playframework.org/</a></span>

Note: I installed the typesafe dist and followed this to run:

As per <span class="http-markup"><a href="http://indiewebcamp.com/Scala/Lift_Quick_Start" rel="nofollow">http://indiewebcamp.com/Scala/Lift_Quick_Start</a></span>

    •    cd lift_basic # this sample app includes database and login
    •    sudo ./sbt update # simple build tool: fetch dependencies
    •    sudo ./sbt ~jetty-run # compile then launch web app
    •    View <span class="http-markup"><a href="http://localhost:8080" rel="nofollow">http://localhost:8080</a></span> in a browser and see the running web app.

Scala and the underscore character _ <span class="http-markup"><a href="http://www.slideshare.net/normation/scala-dreaded" rel="nofollow">http://www.slideshare.net/normation/scala-dreaded</a></span>

Scala and mongodb:
<span class="http-markup"><a href="http://janxspirit.blogspot.com/2011/01/quick-webb-app-with-scala-mongodb.html" rel="nofollow">http://janxspirit.blogspot.com/2011/01/quick-webb-app-with-scala-mongodb.html</a></span>

Using IntellJ IDEA to create a Scala Lift project:

<span class="http-markup"><a href="http://www.assembla.com/spaces/liftweb/wiki/Using_IntelliJ_IDEA_to_develop_Lift_applications" rel="nofollow">http://www.assembla.com/spaces/liftweb/wiki/Using_IntelliJ_IDEA_to_develop_Lift_applications</a></span>

<span class="http-markup"><a href="http://tommorris.org/wiki/Scala_for_Hackers" rel="nofollow">http://tommorris.org/wiki/Scala_for_Hackers</a></span>

 

 


Replies
    This Evis needs your voice! Please Login to post comments.
    #1

    Have a look at why Bump are using Scala for their mobile app http://www.quora.com/Bump-Technologies/Why-did-Bump-Technologies-choose-to-use-Scala-in-its-Android-App?snids=24861995


    - ichaib (Ismail CHAIB) 3 years, 3 months ago (Permalink)