Scala
-
Scala snippets 4: Pimp my library pattern with type classes.
I wanted to write an article on the fun parts of scalaz, but thought it would be best to first…
Read More » -
Solving “Water buckets” problem using Scala
I recently came across a puzzle called the “Water Buckets” problem in this book, which totally stumped me. You have…
Read More » -
Scala snippets 3: Lists together with Map, flatmap, zip and reduce
You can’t really talk about scala without going into the details of the Map, flatMap, zip and reduce functions. With…
Read More » -
Scala snippets 2: List symbol magic
The following other snippets are also available: Scala snippets 1: Folding In scala every symbol can be a function, so…
Read More » -
Spark: Write to CSV file
A couple of weeks ago I wrote how I’d been using Spark to explore a City of Chicago Crime data…
Read More » -
Spark: Write to CSV file with header using saveAsFile
In my last blog post I showed how to write to a single CSV file using Spark and Hadoop and…
Read More » -
ReactiveMongo with Akka, Scala and websockets
I was looking for a simple websocket server for one of my projects to test some stuff with reactive mongo.…
Read More » -
Scala snippets 1: Folding
Coming from a Java background, Scala provides lots of nice features and libraries that allow you to create nice and…
Read More » -
Spark: Parse CSV file and group by column value
I’ve found myself working with large CSV files quite frequently and realising that my existing toolset didn’t let me explore…
Read More »