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

scala in 5 minutes

scala in 5 minutes

Lightning talk "scala in 5 minutes" presented at rubyconfuy 2012

federico silva

March 23, 2013
Tweet

More Decks by federico silva

Other Decks in Programming

Transcript

  1. Scala in 5 minutes federico silva @ inConcert twitter.com/fedesilva scala

    meetup co-organizer self appointed scala ambassador in rubyland sábado 23 de marzo de 13
  2. Scala is functional, succint (but not haskell like) loves immutability

    object oriented, has novel ways of expressing object composition flexible ( a lot ) sábado 23 de marzo de 13
  3. Scala has a unified type system ( no int|Int dichotomy

    ) everything is an object, even functions. type inference (avoids type stutter) sábado 23 de marzo de 13
  4. Scala can perform several kinds of “static monkey patching” via

    type classes, mixins, structural types ... val p = new Person with AdminCapabilities sábado 23 de marzo de 13
  5. is Scala complicated ? it is assumed that it is

    going to be used by consenting adults so it gives rope ... but not heavy ammunition as c++ would. not something I need to explain to a bunch of rubists, innit? (thinks monkey patching gone wild or gratuitous meta programming) sábado 23 de marzo de 13
  6. but Scala and ruby? if you use jRuby you can

    drop to java for performance ... and sadness. better use scala! jruby has scala integration scala has Dynamic which is like method missing. sábado 23 de marzo de 13
  7. Shameless Plug next month (Apr 18) Intro to implicits by

    yours truly ... sábado 23 de marzo de 13