Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Scala for Fun & Profit

Scala for Fun & Profit

Scala is a static typed hybrid object-oriented and functional programming language based on the JVM. Between the renaissance of functional programming in the development scene and its use in highly available, highly scalable platforms like Twitter, Tumblr and The Guardian, Scala has "crosssed the chasm" in terms of adoption.

Come on a journey through the Scala world from the starting point of 'Why Scala?' through tooling and challenges to advanced topics such as Implicits and Akka Actors. Find out how to integrate Scala with your existing Java libraries and use Play for low-ceremony stateless asynchronous web services and applications.

Sample Code - https://github.com/kouphax/scala-mini-bash

James Hughes

June 26, 2013
Tweet

More Decks by James Hughes

Other Decks in Programming

Transcript

  1. object SquareRoot extends Baysick { def main(args:Array[String]) = { 10

    PRINT "Enter a number" 20 INPUT 'n 30 PRINT "√ of " % "'n is " % SQRT('n) 40 END RUN } }
  2. implicit def CokleisliCategory[M[_]: Comonad]: Category[({type λ[α, β]=Cokleisli[M, α, β]})#λ] =

    new Category[({type λ[α, β]=Cokleisli[M, α, β]})#λ] { def id[A] = ˒(_ copure) def compose[X, Y, Z]( f: Cokleisli[M, Y, Z], g: Cokleisli[M, X, Y]) = { f =<= g } }
  3. def °□° = "" def ɐlɐɔs = "" object ››

    { def ›(s: String) = "ɐlɐɔs" } object › { def apply(s: String) = ›› } ›(°□°) › ɐlɐɔs