Tag Archives: back2basics

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

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

Back2Basics: Scala Type System in Depth


In this blog, I will put emphasis on the power and awesomeness of the Scala Type System. Also, I will try to reiterate that it is not difficult or complicated as perceived.  In layman terms, the Scala Type system helps … Continue reading

Posted in Scala | 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: Introduction to Scala Type System


As programmers, we often come across a concept called type inference. To begin with let me clarify that type inference is not something unique to Scala, there are many other languages like Haskell, Rust and C# etc that have this … Continue reading

Posted in Scala | Tagged , , | 2 Comments