Scala · Tutorial

Using Case Classes to Structure Your Data

Using Case Classes to Structure Your Data          By Daniela Sfregola This article, taken from the pages of Get Programming with Scala, discusses an important tool in your Scala toolbox, called “case class.” Save 37% off Get Programming with Scala with code fccsfregola at manning.com. When coding, dealing with data is an… Continue reading Using Case Classes to Structure Your Data

Conferences

And the Oscar for best deb scalero goes to…

Scalera

Before going on, we would like to thank you all that participated in this challenge. It’s totally inspiring see how people from many different places around the world share the same motivation, spending time on resolving a small challenge.

It was complicated to choose a winner (you did it really great). Discarding solutions that were based somehow on the distance between rovers (we modified the value of the constant DistanceBetweenRovers to check if rovers still find each other), and some others, we named finalists (by solution arrival order) the following people:

Pablo Francisco Pérez
Daniela Sfregola
Daniel Dehouck

Sebastián Ortega
Florian Mériaux

the very first 3 provided very nice solutions but finally we decided that the winner is …

Lenny-Listening-The-Simpsons

Daniela Sfregola with a 50 tick/7 lines solution.

tumblr_nqg2m1V47l1s9y3qio2_250

Congratulations! Yours is the Scalera t-shirt and our acknowledgement.
Thanks again to the participants. We will shortly be back with new challenges 😉

View original post 4 more words

Akka · Akka Cluster

Background Processing with Akka Cluster: ClusterSingletonManager

REST services are quite commonly used in scalable architectures because they are stateless. However, in the practical world, a service is rarely just a CRUD service: for example we could also have some background processing (i.e.: downloading/parsing files, scheduled processed, triggers, etc). In this tutorial we demonstrate how to use an Akka SingletonClusterManager in a… Continue reading Background Processing with Akka Cluster: ClusterSingletonManager

twitter4s

twitter4s: A Scala client for the Twitter API

A few months ago, I started looking into the Twitter API and I have developed twitter4s, an asynchronous non-blocking Twitter client in Scala. In this article, we will introduce twitter4s providing examples of how to download tweets from a user timeline and how to perform some simple data analysis. The code shown in this tutorial… Continue reading twitter4s: A Scala client for the Twitter API

REST · Spray · Tutorial

How to build a Scala REST CRUD application with Spray

In previous articles we have described how to build a REST Api with Spray and how to (de)serialize case classes with json4s. However, in order to keep things simple, we didn't always do things as suggested by spray.io. In this article we will redeem ourselves and we will describe how to build a REST CRUD… Continue reading How to build a Scala REST CRUD application with Spray