Book · Functional Programming · Get Programming With Scala

Get Programming with Scala

Exciting news, after 4 years of hard work, my book Get Programming with Scala is finally here! Get Programming with Scala is published by Manning and available for purchase. Get Programming with Scala is designed to be your ideal first book on Scala. The book is aimed at beginners: technical terms are explained, and it… Continue reading Get Programming with Scala

Community · Scala

Introducing #ScalaThankYou: Be a Part of It!

Dear Scala Friend, I am going to start a small Twitter campaign to bring positivity into the Scala Community, and I'd love you to be a part of it.   What is "ScalaThankYou"? ScalaThankYou is a small Twitter campaign in which people send tweets to thank other people or organizations that made a difference in… Continue reading Introducing #ScalaThankYou: Be a Part of It!

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

Spray · Tutorial

How to Create a Spray Custom Authenticator

Spray has a few standard authenticators already built in. However, what if the authentication we need is not supported? In this article we will describe how to create a custom authenticator in Spray. In particular, we will implement a custom client id/secret token-based authentication. Spray Authentication: how it works Spray has already some built in… Continue reading How to Create a Spray Custom Authenticator