Scala
Upcoming SlideShare
Loading in...5
×
 

Scala

on

  • 380 views

 

Statistics

Views

Total Views
380
Slideshare-icon Views on SlideShare
380
Embed Views
0

Actions

Likes
0
Downloads
2
Comments
0

0 Embeds 0

No embeds

Accessibility

Categories

Upload Details

Uploaded via as Microsoft PowerPoint

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

    Scala Scala Presentation Transcript

    • A sightseeing tour Iulian Dogariu Ness TechnologiesIași JUG – 13 February 2013
    • I’m sure I’ve been here before
    • That’s it! Goodbye And thank you for riding with Scala Tours
    • Who are You?
    • “If someone had shown me theProgramming in Scala book in 2003, Iwould not have created Groovy” -- James Strachan, creator of Groovy
    • C:“ASM is not portable”
    • C++: “C is nice,but OOP is the future”
    • Java: “C++ is nice,but it’s too dangerous”
    • C#: “Java is nice”“And we’re so jealous!”
    • Scala? “Java is nice”“And we’re so jealous” “… of Haskell” “… and Erlang” “… and Python”
    • Functional style Express processes, not just thingsdef listCapitalisedWords(text:String) = text.split("s"). filterNot(_.isEmpty). filter(_.charAt(0).isUpper)
    • Massive concurrencyMessage passingNo shared stateReady for the “multicore era”
    • But alsoLess code => Less room for bugs to hide in (!)More expressive constraints in the typesFull Java interoperability
    • Options, options everywhere
    • “We can do this in Java too” It’s not what is possible, it’s what is easy
    • Pattern matching
    • Got Change?val vs var
    • Traits
    • λ
    • What’s the use?Language is a medium of expression, not just a tool
    • Data structures Choose the right one, and the algorithms take care of themselvesval weekdays = List(“Monday”, “Tuesday”, “Wednesday”, “Thursday”, “Friday”)val beatles = Set(“Ringo”, “John”, “Paul”, “George”)val aTuple = (1, “John Smith”, false)val dataset = Array( (1, “Ion Popescu”), (3, “Maria Teodorescu”) )
    • Actors
    • Who uses Scala?Source: slideshare.net/mslinn/scala-adoption-by-enterprises
    • How popular? … Source: TIOBE index February 2013
    • … hmm. Source: TIOBE index February 2013
    • Tooling
    • Pitfallsand oddities
    • One more thing
    • specs2
    • […] You can write large programs inJavaScript. You just can’t maintainthem. -- Anders Hejlsberg
    • Use your head“Lacking opinions, all code reflects the coder”
    • Resources• http://www.scala-lang.org• Book: Martin Odersky – Programming in Scala• Book: Venkat Subramaniam – Programming Scala• Commercial support: Typesafe, Inc. http://www.typesafe.com
    • Thank you!