Play/Scala as application platform (for 2013)

download Play/Scala as application platform  (for  2013)

If you can't read please download the document

Transcript of Play/Scala as application platform (for 2013)

Scala/Play - web platform

Ruslan Shevchenko

Scala -- :

http://www.scala-lang.org

Play framework

http://www.playframework.org

Open Source

(typesafe).

http://www.typesafe.org

ROR-

(less, coffescript, require.js ... etc)

Async interfaces. [WebSockers, comet]

Developer friendly

ROR-

.................

Scala

Scala

JVM based (Java byte-code)

,

Scala, :

def sumEvens(seq: Seq[Int]) = seq.filter.{ _ % 2 == 0 }.sum

Scala, :

int sumEvens(l: ArrayList[Integer]): Int{ int sum = 0 for(x in l) { if (x %2 == 0) sum += x; } return sum;}

def sumEvens(seq: Seq[Int]) = seq.filter.{ _ % 2 == 0 }.sum

Java:

Scala, :

function sumEvens($seq){ $sum = 0 foreach($seq as $x) { if ($x %2 == 0) $sum = $sum + x; } return $sum;}

def sumEvens(seq: Seq[Int]) = seq.filter.{ _ % 2 == 0 }.sum

PHP:

Scala

1. 2.

:

:

1. .2. 3. Java 4. DSL........ ( )

Play

- MVC ( ROR Zend)

Application

Controller

View

Router

( View )

Json REST

API

Akka

Netty

Request => Reply

WebSocket

Comet

client-side

less

coffescript

JavaScript modules

LAMP

Linux

Apache

MySql

PHP (Perl, Python)

CPMS

Cloud

Play

Mongo

Scala

LAMP

Linux

Apache

MySql

PHP (Perl, Python)

CPMS

Cloud

Play

Mongo

Scala

CPMS

Cloud

Play

Mongo

Scala

CP_S

Cloud

Play

Any

Scala/Java

CPMS

Cloud

Play

Mongo

Scala

CP_S

Cloud

Amazon, Heroky, CloudBess, Cloud Foundry...

Play

_

NoSQL

Mongo, Cassandra, ...

SQL

Postgress ....

Scala

( java )

:

https://github.com/guardian/

http://engineering.linkedin.com/

Scala/Play:

Scala/Play:

http://www.typesafe.com/ (play activator)

http://www.playframework.org (documenation)

http://www.scala-lang.org (documentation)

http://twitter.github.io/scala_school/

Scala UA

google group: scala-ua

FB Group: scala ukraine.

https://www.facebook.com/groups/256373621041781/

https://groups.google.com/forum/?fromgroups#!forum/scala-ua

[email protected]

@rssh1