2 comments on “Back2Basics: The Magic of Implicit – #2”

Back2Basics: The Magic of Implicit – #2


In our previous blog, The Magic of Implicit, we have talked about how implicit values are being used. In this blog, we will explore Type Conversion with implicit and implicit classes. Let's start with a simple example, Here we were trying…

2 comments on “ScalaFP: Mystery Of Scala Higher Kinded Type.”

ScalaFP: Mystery Of Scala Higher Kinded Type.


Scala type system holds a lot of mysteries. Sometimes these mysteries confuse us but mostly they provide us with a powerful feature. Today we will be discussing one of them called Higher Kinded Type Or Second Order Type. Before moving…

4 comments on “Back2Basics: The Story of Trait – Part 4”

Back2Basics: The Story of Trait – Part 4


In our previous blog The Story of Trait - Part 3, we have discussed the mixin, one of the charming feature of traits. Now we are going to explore chaining of traits. We have seen how can we mix more than…

2 comments on “Back2Basics: Demystifying Variance”

Back2Basics: Demystifying Variance


In this blog, we will explore types of variances in Scala. In-variance Co-variance Contra-variance First, let's talk about Types in Scala. In the above example, ref1 is of type Any and ref2 is of type String. Scala Compiler has no…

2 comments on “Is Shifting to Domain Driven Design worth your Efforts?”

Is Shifting to Domain Driven Design worth your Efforts?


In our earlier blog, we explored a bit about Microservices. But let's take a step back and look into how microservices can be effectively designed. Yes, you guessed it right. We will be talking about the Domain Driven Design or what…

1 comment on “Back2Basics: Demystifying Eta Expansion”

Back2Basics: Demystifying Eta Expansion


In this blog, we will talk about eta expansion in Scala. How they behave under the hood before and after Scala version 2.12. Scala has both methods and functions in Scala. We refer them interchangeably but there are situations where…

2 comments on “Back2Basics: Limit which classes a Trait can be mixed into!”

Back2Basics: Limit which classes a Trait can be mixed into!


A Scala trait is just like a Java interface. A trait can be extended by different classes, just the way we do with Java interfaces and also a class can inherit multiple traits, called mixins. To know more about basics of…

1 comment on “Using Microsoft SQL Server with Scala Slick”

Using Microsoft SQL Server with Scala Slick


This blog post shows simple CRUD operations on Microsoft SQL Server using Scala Slick version 3.2.3. You might be thinking what's really great about it? Duh! But until Scala Slick 3.2.x was released, using commercial databases was within the horizon…

4 comments on “ScalaFP: Understanding Monoids In Scala Pragmatically”

ScalaFP: Understanding Monoids In Scala Pragmatically


As we discussed in our previous post, Monoids are semigroups meaning they have properties called closure and associative, along with identity element. So, now our question is, why do we require the identity element? Let's add this one to our questions which…

3 comments on “Back2Basics: The Magic of Implicits”

Back2Basics: The Magic of Implicits


Implicit System is one of Scala's language greatest feature with the help of which we can write concise code. The implicit system in Scala allows the compiler to adjust code using a well-defined lookup mechanism. In this post, we will try…