Tag Archives: scalafp

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 … Continue reading

Posted in knoldus, Knoldus Chrome Exntesion, Scala, Tutorial | Tagged , , , , , , , | 2 Comments

ScalaFP: Let’s Start with Implicit and Scala Cats


In our last blog, we have discussed the Type Class. You can find that blog Here: Type Class. Now we will discuss the Implicit in Scala. Implicit Implicit in Scala refers to either a value that can be passed “automatically”, so … Continue reading

Posted in Scala | Tagged , , , , | 1 Comment

Back2Basics: The Story of Trait – Part 3


In our previous blog The Story of Trait – Part 2, we have discussed that traits can have implementation too and how they behave under the hood. In this blog, we will discuss mixins one of the most charming features … Continue reading

Posted in Scala | Tagged , , , , , , , , , | 4 Comments

ScalaFP: Let’s Start with Type Class


Before we start talking about the Functional Programming with the Scala Cats, we should refresh our memory about the Type Class and Implicit. These are the base when we start learning the Scala Cats. Let’s start the discussion with the … Continue reading

Posted in Scala | Tagged , , , , , | 4 Comments

ScalaFP: Let’s Begin With Monoids


As we discussed in our semigroups post, monoids are also kind of functional design patterns. Most of the FP beginners are always confused between Monads and Monoids. According to them both are the same, Is It? In this post, we will be … Continue reading

Posted in Functional Programming, Scala | Tagged , , , , , , , , | 5 Comments

ScalaFP: Understanding Semigroups In Scala Pragmatically


In our previous post, we discussed semigroups according to mathematics and we conclude that semigroups have two properties called closure and associativity. But still, we have some questions like: How can we use semigroups by using Scala? Where do we … Continue reading

Posted in Functional Programming, Scala | Tagged , , , , , , , , , | 3 Comments

ScalaFP: Let’s Begin With Semigroups.


While we start looking into functional programming, the first thing we find out is “Category Theory” and if you are not a mathematician, then, it is really a huge pain to find out the answers to questions like “what, how … Continue reading

Posted in Functional Programming, Scala | Tagged , , , , , , , , , , | 6 Comments

Back2Basics: The Story of Trait – Part 2


In our previous blog The Story of Trait – Part 1, we have discussed how traits are the just regular interfaces at the very basic form. In this blog, we will explore about traits can have method implementation too. We … Continue reading

Posted in Functional Programming, Scala | Tagged , , , , , , , , , | 8 Comments

Back2Basics: The Story of Trait – Part 1


In this blog, we will have a look at traits in Scala. We have classes in Scala. Suppose we have a class Dog which has a method speak. Now if we want another class Cat which has the same method … Continue reading

Posted in Functional Programming, Scala | Tagged , , , , , | 6 Comments