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
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!
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
And the Oscar for best deb scalero goes to…
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
the very first 3 provided very nice solutions but finally we decided that the winner is …
Daniela Sfregola with a 50 tick/7 lines solution.
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
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
How to build a REST API with Akka Http
In previous articles we have discussed how to use Spray to build REST APIs. Since Akka 2.4, Spray is no longer supported and it is replaced by Akka Http. This article will introduce Akka Http, the new shiny toy from the Akka Team, and provide a tutorial on how it can be used to create… Continue reading How to build a REST API with Akka Http
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
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: how to (de)serialize objects with json4s
A while ago I wrote an article on how to build a REST api with Spray, where I used the Spray facilities to serialize and deserialize objects to and from JSON. This article will analyze how we can make the (de)serialization of our case classes easier, by using a library called json4s. All the code… Continue reading Spray: how to (de)serialize objects with json4s
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