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 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
Structural Types is a neat feature of Scala that not many developers know or use. This article will provide a brief introduction on what they are and how to use them. What are Structural Types? Types can be really powerful in Scala: they can define classes, abstract classes, objects, traits, functions...and a lot more! What… Continue reading Static Duck Typing in Scala
I have recently attended the Advanced Scala Training Course by TypeSafe during the Scala Days Conference in Amsterdam. During the course we discussed a lot on how to write cleaner and more performant Scala code: one of the parameters that can greatly influence your performance is the type of collections used. Which type of collection… Continue reading Performance Comparison between immutable Seq, List, Vector
Methods are an efficient way of reducing code duplication and make our code cleaner. What happens if a class that you don't own (i.e.: any class of the Standard Scala Library) doesn't have a particular method that could make your life a lot easier -- and your code a lot more readable? This article will… Continue reading Pimp My Library
The separation of configuration from code is a good practice that makes our system customisable as we can load different configurations according to the environment we are running it in. In this article we will describe different approaches to load configurations in Scala and how they can be combined together: loading configurations from a file,… Continue reading Loading Configurations in Scala
Futures are a powerful tool that has been developed by the Akka team and then adopted as a standard Scala library from version 2.10. A Future is a placeholder for a value that will be available in the future: thanks to it, it is possible to run operations in parallel and to worry about what… Continue reading How to Compose Futures