Scala: links

Collections

Reduce, fold or scan (Left/Right)?

Functional programming

Building a Scala Sequence in a Functional Style

Demystifying monads in Scala

Concurrency

Which shoe fits you? Comparing Akka Streams, Actors, and Plain Futures

Scala – Execution Order when Mapping Over Twitter Futures

ScalaZ 8 vs AKKA

An introduction to Finagle

import com.twitter.util.{Await, Future, Promise}
class User(n: String) { val name = n }
def isBanned(u: User) = { Future.value(false) }
val pru = new Promise[User]
val futBan = pru flatMap isBanned
pru.setValue(new User("prudence"))
Await.result(futBan)
import com.twitter.util.{Await, Future, Promise}
class User(n: String) { val name = n }
def isBanned(u: User) = { Future.value(false) }
val pru = new Promise[User]
val futBan = pru.flatMap(isBanned)
pru.setValue(new User("prudence"))
Await.result(futBan)
import com.twitter.util.{Await, Future, Promise}
class User(n: String) { val name = n }
def isBanned(u: User) = { Future.value(false) }
val pru = new Promise[User]
pru.setValue(new User("prudence"))
val futBan = for { futUser <- pru; futIsBanned <- isBanned(futUser) } yield futIsBanned
Await.result(futBan)

Traits

To trait, or not to trait?
Traits
Scala traits implementation and interoperability. Part I: Basics
Scala traits implementation and interoperability. Part II: Traits linearization
Scala Trait and Mixin – Points to Remember
Is Traits in Scala an Interface or an Abstract Class?

Sealed traits

Everything You Ever Wanted to Know About Sealed Traits in Scala
More on Sealed Traits in Scala
Sealed Traits & Functions Referencing Sub-classes?

Typesafe Config

Configuration library for JVM languages
Typesafe Config Features and Example Usage
Environment aware configuration with Typesafe Config

Scala on Raspberry PI

Scala – IOT : First basic IOT application using Scala on RaspberryPi

 

 

Leave a Reply

Your email address will not be published. Required fields are marked *