Tag Archives: Functional Programming

Back2Basics : Existential types in Scala


In the first blog of the Scala Type System series, I  had put a lot of emphasis on the fact that “Type variables make a very powerful piece of type-level programming”. They appear in a variety of forms and variations. One … Continue reading

Posted in Scala | Tagged , , | 1 Comment

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

Posted in Scala, Functional Programming | Tagged , , , , , , , , , | 3 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