Extending instances on creation for debugging
A neat trick you can do in Scala is extending an object (instance of an existing class) on the fly when you instantiate it. This comes in very handy when…
A neat trick you can do in Scala is extending an object (instance of an existing class) on the fly when you instantiate it. This comes in very handy when…
I was doing Advent of Code and was working on generating numbers based on a pattern (day 15). (more…)
When working with sets of data, we usually work with strict (eager) collections. Sometimes we wish to work with lazy collections such as when we're dealing with infinite streams. If…
Giter8 is a command line tool that helps you to easily setup your project structure from templates published on github. It is written in Scala and based on sbt, but…
On April 17-18 the three of us attended the Scala Days 2012 conference in London. Many of the most known and active contributors to the Scala community were there -…
I used MongoDB for a project in 2010 and I had great experience with it. Unfortunately I didn't get the chance to work with this agile and scalable document-oriented database…
Last week I attended Scala LiftOff London 2011 at the Skills Matters Exchange, and being very new to the community aspect of Scala i didn't know what to expect. One thing is…
In the previous post we went through Scala parallel collections and you saw how you can convert a sequential collection into a parallel one by using method par on that…
If you have used case classes in Scala, you can not neglect the power they bring to your applications. They provide a recursive decomposition mechanism via pattern matching. In this…
So far we have seen how to define covariant and contravariant subtypes in Scala. In this post we will study lower bounds and upper bounds and see how they can…
In the previous post, I went through what covariant subtyping is. In this post we will study contravariant subtyping with a small example. Contravariant Subtyping Do you remember the definition…
I remember when I started to learn Scala, I usually come up with brackets in the Scala API doc that have plus and minus characters inside. Honestly that scared me…
In this short post, I want to show you how you can avail from Scala parallel collections in your application and under which conditions it makes sense to use it.…
Today I was writing an AspectJ aspect for a Scala trait and was wondering why my constructor pointcut definition didn't work. Having a closer look at the Scala byte code…
A couple of weeks ago I had a look at the Motodevstudio for Android developers and I think it has some quite nice features like code snippets or wizards for…