Wednesday, April 27, 2016

SCALA - Scala for Java developers notes

Resources:
This course on Pluralsight
http://scalaforfunandprofit.com/why-use-fsharp/

http://docs.scala-lang.org/style/

History
Started in 2003 as research project in Switzerland.
Research was headed by Martin Odersky - an author of Java Generics and Java compiler.


Scala was adapted by:

Scala is for the future Software Development and there is non too much experienced devs
http://insights.dice.com/2014/04/04/employers-cant-find-enough-scala-talent/

Pure functions 
Is associated with objects and work without a side-effects (or mutation).
Define fixed variable - vow.

Higher order functions 
Functions are "first citizens" in Scala. This why functions could:

  • receive other functions in its parameters
  • return functions
  • to be stored for later execution