github.com
github.com
|
Java developers Scala cheatsheet |
scala-lang.org specs
scala-lang.org api
artima.com
twitter effective scala
twitter scala school
|
Scala official specs, api reference, Artima book, Twitter Scala school |
joelabrahamsson.com |
Scala’s type hierarchy and object equality
|
github.com |
Very nice article on Scala types from Github user ktoso |
github.com
realestate.com.au
|
Scala examples from Java to Scala cheatsheet
|
github.com |
When you see a field in a Scala class, remember that it's not the same as Java
It's either a private field together with a getter (for a val field)
Or a getter and a setter (for a var field)
|
github.com |
Concurrency in Scala
|
scala-lang.org
github.com
rocketeer.be
|
The Actor Model proposed by Carl Hewitt in 1973
Actors are objects which encapsulate state and behavior, Examples
|
github.com |
Enterprise Application Interface (EAI) Patterns with Actor Model |
stackoverflow.com
akka.io
|
Akka Examples,
|
paralleluniverse.co
zeroturnaround.com
|
Fiber based Actor framework: Quasar |
scala-lang.org |
Predef class gives aliases for commonly used types, such as Map, Set, and the List |
artima.com |
How Scala's == differs from Java's
On primitive types, Java's == compares value equality, as in Scala
On reference types, however, Java's == compares reference equality
Scala provides a facility for comparing reference equality, using eq() and its opposite, ne()
|
stackoverflow.com
github.com
|
Accessor and mutator methods in Scala |
artima.com |
Every array is an object in Scala. array(0) = "Hello" converts to:-> array.update(0, "Hello") |
scala-lang.org |
The Scala 2.8 Collections API
|
stackoverflow.com
github.com
|
All automatic imports in every Scala entity
- import _root_.java.lang._
- import _root_.scala._
- import _root_.scala.Predef._
All symbolic operators
|
stackoverflow.com |
Difference between case object (can be serialized) and object (can't be serialized) |
stackoverflow.com
github.com
|
Difference between private and private[this] |
stackoverflow.com
github.com
|
final abstract class Int private extends AnyVal
abstract forbids instantiation (new Int ), whereas final forbids subclassing (new Int {} )
|
scala-lang.org
github.com
|
String Interpolation in Scala
Scala provides three string interpolation methods [ s, f, raw ]
|
stackoverflow.com |
Reason for having val someVariable : Int instead of val Int someVariable in Scala |
stackoverflow.com
stackoverflow.com
|
Difference of var and val. val is a final value |
scala-lang.org
github.com
|
Case Classes |
stackexchange.com |
Scala use '_' operator for package import instead of '*' as in Java
In Scala, the * is a valid identifier. val * = "trollin"; println(*)
|
stackoverflow.com |
Scala uses '::' operator as the list cons operator
It creates a new list whose head is first argument and whose tail is contents of the second argument
|
codecommit.com |
Explanation of Scala’s (_+_) Syntax |
stackoverflow.com
github.com
|
Accessors and Mutators (getters/setter) in Scala |
stackoverflow.com
stackoverflow.com
|
Scala context and view bounds. Purpose of operator: < % |
stackoverflow.com |
Private scoping with square brackets (private[…]) |
stackoverflow.com
github.com
|
Scala constructor overload using Auxiliary constructors |
stackoverflow.com |
Scala import statement at top and inside scala class |
stackoverflow.com |
Understand how to use apply() & unapply() |
scala-lang.com
stackoverflow.com
stackoverflow.com
|
Scala trait is equivalent to a Java interface
Scala sealed trait is equivalent to a Java enum interface
Scala allows traits to be partially implemented
Purpose of sealed abstract class
|
alvinalexander.com
github.com
|
Scala Tuple on REPL (Read-Evaluate-Print Loop) |
alvinalexander.com
github.com
|
Scala Either: Either works just like Option |
stackoverflow.com
github.com
|
Equivalent of Java Object Class in Scala is AnyRef |
stackoverflow.com |
Why Scala lacks static members and primitives |
scalaformachinelearning.com |
A dedicated space for Scala based Machine Learning Examples |
dzone.com
github.com
|
Operator Overloading in Scala. Operators are nothing just methods |
baddotrobot.com
alvinalexander.com
|
Implicit Parameters and Functions in Scala
|
stackoverflow.wom |
Understanding type keyword and Anonymous functions
|
richdougherty.com
github.com
|
Tail calls, @tailrec in Scala |
stackoverflow.com
github.com
|
lazy val in Scala: A lazy val is most easily understood as a memoized def
val is executed when it is defined
lazy val is executed when accessed first time and result is saved for future invocation
|
stackoverflow.com
stackoverflow.com
|
Difference between object and class in Scala
Class is a blueprint for objects. objects are program entry point
Difference between object and case object in Scala
Companion object shares the same name of class and stay in same class
|
scala-sbt.org
github.com
|
Scala build tool: SBT
'run' command to compile. 'package' command to generate jar
Library dependencies |
Organizing the build
|
stackoverflow.com |
How to have Eclipse recognize dependencies from SBT
Add sbt plugin info at project/plugins.sbt
[addSbtPlugin("com.typesafe.sbteclipse" % "sbteclipse-plugin" % "4.0.0")]
|
github.com
michaelhamrah.com
|
Typesafe Config library |
github.com
github.com
|
Anagram in Java/Scala |
github.com
github.com
|
Word frequency in a statement in Java/Scala |
github.com
github.com
|
Stack in Java/Scala |
github.com
github.com
|
Queue in Java/Scala |
github.com
github.com
|
CircularQueue in Java/Scala |
github.com
github.com
|
Reverse the word using Stack in Java/Scala |
aperiodic.net |
Ninety-Nine Scala Problems |
semaphoreci.com |
A Hands-On Introduction to ScalaTest
|
github.com |
Concurrent Programming in Scala |
jaceklaskowski.pl |
Ditching Guice's @Singleton in Favour of Scala's Companion Object
Jacek Laskowski is working at DeepSense. Spark Open book by him
DeepSense won Kaggle Right Whale Recognition Compitition
|