Slide 1

Slide 1 text

An Introduction to Scala Dave Gurnell @davegurnell Richard Dallaway @d6y www.underscoreconsulting.com

Slide 2

Slide 2 text

Why, Functional Programming! •  FP is no longer for academics •  Commercial adoption is on the rise •  FP in mainstream languages

Slide 3

Slide 3 text

*Why* Functional Programming? •  Clarity •  Greater expressiveness •  Fewer bugs •  Productivity

Slide 4

Slide 4 text

Why Scala? •  Combines OO and FP concepts •  On the JVM •  Gradual learning curve from Java •  Fun and profit !

Slide 5

Slide 5 text

Concepts •  Basic syntax and expressions •  Types and type inference •  Functions as values •  Higher order functions •  Immutability

Slide 6

Slide 6 text

Demo!

Slide 7

Slide 7 text

https://github.com/ davegurnell/ brighton-java-scala-talk

Slide 8

Slide 8 text

Resources Dave Gurnell @davegurnell Richard Dallaway @d6y www.underscoreconsulting.com Thank you: https://github.com/aral/fork-me-on-github-retina- ribbons Download: http://www.scala-lang.org/download Learn: http://typesafe.com/resources/book/scala-for-the-impatient Meet: http://www.meetup.com/Functional-Brighton