how scala is different

20
Today

Upload: remy-willems

Post on 25-Jun-2015

84 views

Category:

Software


0 download

DESCRIPTION

Introduction to Scala for object-oriented programmers. Comparing Scala to languages such as C# and Java.

TRANSCRIPT

Page 1: How Scala is different

Today

Page 2: How Scala is different

Why Scala?

Page 3: How Scala is different

Not Today

• Sales pitch– “Selling Scala to your boss”

• Ecosystem– Distributed computing– Web applications

Page 4: How Scala is different

Scala Features

≈ Functional• First class functions• Type inference• Case classes• Pattern matching• Immutable state• Nested functions• Laziness• Implicits

≈ Object Oriented• Singletons• Traits

Page 5: How Scala is different

First class functions

Page 6: How Scala is different

Type inference

Page 7: How Scala is different

Case classes

Page 8: How Scala is different

Pattern matching

Page 9: How Scala is different

Immutability I

Page 10: How Scala is different

Immutability II

Page 11: How Scala is different

Singleton

Page 12: How Scala is different

Nested functions

Page 13: How Scala is different

Traits I

Page 14: How Scala is different

Traits II

Page 15: How Scala is different

Laziness I

Page 16: How Scala is different

Laziness II

Page 17: How Scala is different

Implicit Conversions

Page 18: How Scala is different

Implicit Parameters I

• Ten different implementations

Page 19: How Scala is different

Implicit Parameters II

Page 20: How Scala is different