Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

Short and fast introduction to Scala

359 views

Published on

Short and Fast introduction to Scala

Published in: Engineering
  • Be the first to comment

Short and fast introduction to Scala

  1. 1. A short and really fast Scala Introduction Sergi González
  2. 2. http://www.slideshare.net/sergigp/short-and-fast-introduction-to-scala
  3. 3. Why Scala? • Java Virtual Machine • Concurrency • Functional and Object Oriented
  4. 4. Why Scala? • Immutable • First Class Functions • Type Interface • Traits (oh yes!) • Pattern Matching • Actors (SPOILER ALERT) • The IDE ❤ • ScalaTest • Case classes, lazy, monads, implicits, Akka, Play, Spark…
  5. 5. Why Scala In order to code less and save money in keyboards As a catalan lazy developer I want a programming language that makes for me the boilerplate Feature:
  6. 6. Why Scala
  7. 7. Variables and Values
  8. 8. If, while, functions …
  9. 9. Pattern Matching
  10. 10. Pattern Matching
  11. 11. Pattern Matching
  12. 12. Pattern Matching
  13. 13. Pattern Matching Recursive functions + Pattern Matching = WIN
  14. 14. Lists and more… https://github.com/sergigp/scala-notes/blob/master/akamon/2_lists.sc
  15. 15. OOP
  16. 16. OOP Traits, Objects, Generics, Multiple Inheritance…
  17. 17. FizzBuzz • Given a number: • If it’s multiple of 3 return “fizz” • If it’s multiple of 5 return “buzz” • If it’s multiple of 3 and 5 return “fizzbuzz” • If it’s not multiple of 3 or 5 return the number

×