Slide 1

Slide 1 text

Why Scala should be your next programming language?

Slide 2

Slide 2 text

@r@v!ndh $ Senthil V S @siliconsenthil

Slide 3

Slide 3 text

Scala is pronounced skah-lah* * And, not scale-aah?

Slide 4

Slide 4 text

Know Java?

Slide 5

Slide 5 text

Know Scala?

Slide 6

Slide 6 text

https://twitter.com/janschultecom/status/429981920177311744

Slide 7

Slide 7 text

No content

Slide 8

Slide 8 text

• JVM based* • Multi-paradigm: OO, Functional • Open sourced

Slide 9

Slide 9 text

Basics • class • object • val • var • def

Slide 10

Slide 10 text

Feature: Type inference

Slide 11

Slide 11 text

Feature: Type inference

Slide 12

Slide 12 text

Feature: Case classes

Slide 13

Slide 13 text

Features: Collection

Slide 14

Slide 14 text

Feature: Options

Slide 15

Slide 15 text

Feature: Pattern matching

Slide 16

Slide 16 text

Feature: Pattern matching

Slide 17

Slide 17 text

Feature: Trait

Slide 18

Slide 18 text

Feature: Trait

Slide 19

Slide 19 text

Feature: Trait

Slide 20

Slide 20 text

Feature: Implicits

Slide 21

Slide 21 text

Feature: Pimp my library

Slide 22

Slide 22 text

Why Scala? less verbose

Slide 23

Slide 23 text

Why Scala? less verbose

Slide 24

Slide 24 text

Why Scala? less verbose

Slide 25

Slide 25 text

Why Scala? less verbose

Slide 26

Slide 26 text

Why Scala? • Better concurrency • Immutable data structures

Slide 27

Slide 27 text

Ecosystem: Web • Play • Lift • Scalatra

Slide 28

Slide 28 text

Ecosystem: Unit Testing • ScalaTest • specs2 • Scala Mock

Slide 29

Slide 29 text

Ecosystem: Database • Slick • Anorm • Squeryl • Activate • SORM

Slide 30

Slide 30 text

Ecosystem: Big Data • Scalding • Spark Is Scala the new SQL for big data?

Slide 31

Slide 31 text

Build Tools • SBT • Maven • Gradle

Slide 32

Slide 32 text

Dev. Tools • Intellij IDE • Scala IDE/ Eclipse • VIM with SBT plugin (yeah.. really…)

Slide 33

Slide 33 text

The world is already ahead

Slide 34

Slide 34 text

No content

Slide 35

Slide 35 text

http://zeroturnaround.com/rebellabs/java-tools-and-technologies-landscape-for-2014

Slide 36

Slide 36 text

http://zeroturnaround.com/rebellabs/java-tools-and-technologies-landscape-for-2014

Slide 37

Slide 37 text

I can honestly say if someone had shown me the Programming in Scala book by Martin Odersky, Lex Spoon & Bill Venners back in 2003 I'd probably have never created Groovy. ! - James Strachan, Creator of Groovy http://macstrac.blogspot.in/2009/04/scala-as-long-term-replacement-for.html

Slide 38

Slide 38 text

Scala, it must be stated, is the current heir apparent to the Java throne. No other language on the JVM seems as capable of being a "replacement for Java" as Scala, and the momentum behind Scala is now unquestionable ! - Charles Nutter, creator of JRuby http://blog.headius.com/2009/04/future-part-one.html

Slide 39

Slide 39 text

Which Programming Language would you use *now* on top of JVM, except Java? http://www.adam-bien.com/roller/abien/entry/java_net_javaone_which_programming The answer was surprisingly fast and very clear. Scala.

Slide 40

Slide 40 text

http://www.indeed.com/jobtrends?q=scala%2C++java&l=&relative=1

Slide 41

Slide 41 text

No content

Slide 42

Slide 42 text

Java interoperability • Compiles to JVM bytecode • You can extend java class from Scala & vice versa • Scala projects -> jar files

Slide 43

Slide 43 text

It’s just a jar

Slide 44

Slide 44 text

• No change needed in servers • Build tools support projects with both Java and Scala

Slide 45

Slide 45 text

No content

Slide 46

Slide 46 text

But…..

Slide 47

Slide 47 text

Downsides • Slow compilation • Steep learning curve to know the internal features • Powerful features that can cause unreadable code when misused • Hard time debugging • Tool support

Slide 48

Slide 48 text

No content