Introduction to
WHO AM I? •   Consultant •   JVM/Java - 7 years •   Scala - 1 year
So...what is•   Alternative lang. on the JVM•   ”scalable language”•   Statically typed•   Hybrid language: OO _and_ funct...
NiftyLanguage features •   Pure OO •   Concise syntax •   Type inference •   Pattern matching •   Structural types •   Lam...
We’re developers!Show us somecode already!
Pure OOis an object  everything
SCALA Syntax
Semicolon inference
Uniform Access Principle
Every statement is an expression
One line class declarations
One line class declarations++
Type Inference   The compiler ”— I know your type”
Pattern Matching          Switch on stereoids  •   Match on types  •   Deep matching to extract values
Lambdas Functions are objects                         type: Hat => String
Lambdas   Shortify!
Higher order APIS           Super-sweet collections           Express what is done, not how!
Everything      Is Nestable
Structural types             ”I want something that quacks like a duck”       ck?  - qua
Interactive REPL              Exploratory development
I wanna try it!!! HOW do i get My           hands on it?   You need:     A recent JDK - google JDK     Scala: http://www.s...
Questions?Slides: topconf.com / the program pagemail:   johan.andren@mejsla.setwitter: @apnylle
Upcoming SlideShare
Loading in …5
×

Introduction to Scala

571 views
459 views

Published on

Slides from my Topconf Tallinn 2012 talk about scala

0 Comments
1 Like
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total views
571
On SlideShare
0
From Embeds
0
Number of Embeds
3
Actions
Shares
0
Downloads
4
Comments
0
Likes
1
Embeds 0
No embeds

No notes for slide

Introduction to Scala

  1. 1. Introduction to
  2. 2. WHO AM I? • Consultant • JVM/Java - 7 years • Scala - 1 year
  3. 3. So...what is• Alternative lang. on the JVM• ”scalable language”• Statically typed• Hybrid language: OO _and_ functional• Java compatible
  4. 4. NiftyLanguage features • Pure OO • Concise syntax • Type inference • Pattern matching • Structural types • Lambdas and Higher order API:s
  5. 5. We’re developers!Show us somecode already!
  6. 6. Pure OOis an object everything
  7. 7. SCALA Syntax
  8. 8. Semicolon inference
  9. 9. Uniform Access Principle
  10. 10. Every statement is an expression
  11. 11. One line class declarations
  12. 12. One line class declarations++
  13. 13. Type Inference The compiler ”— I know your type”
  14. 14. Pattern Matching Switch on stereoids • Match on types • Deep matching to extract values
  15. 15. Lambdas Functions are objects type: Hat => String
  16. 16. Lambdas Shortify!
  17. 17. Higher order APIS Super-sweet collections Express what is done, not how!
  18. 18. Everything Is Nestable
  19. 19. Structural types ”I want something that quacks like a duck” ck? - qua
  20. 20. Interactive REPL Exploratory development
  21. 21. I wanna try it!!! HOW do i get My hands on it? You need: A recent JDK - google JDK Scala: http://www.scala-lang.orgYou may also want an IDE:www.scala-ide.org or http://www.jetbrains.com/idea/
  22. 22. Questions?Slides: topconf.com / the program pagemail: johan.andren@mejsla.setwitter: @apnylle

×