Author: Raviyanshu

Traits: The Scala Way of Multiple Inheritance

Reading Time: 3 minutes Hi community, in this blog we are gonna talk about the Traits and how Scala Traits can help you while performing multiple inheritances. What are Traits? Scala does not allow the concept of multiple inheritances for more than one class, so to do multiple inheritances Scala uses Traits A trait is a fundamental unit of code reuse in Scala. A trait holds the definitions of Continue Reading

Higher Order Function: Diving into the Functional Style of Scala

Reading Time: 3 minutes Hi, community in this blog we are gonna talk about one very important feature of Functional style programming in Scala so make your IntelliJ ready and let’s learn about Higher-Order Functions. Before going into Higher Order Function first let’s take a brief understanding of Functions in Scala. Functions in Scala As we all know, a function is a group of statements that performs a particular Continue Reading

Pattern Matching: The Most Powerful Tool of Functional Programming

Reading Time: 2 minutes Hi, community, in this blog, we will be covering what is pattern matching, when should we use it, and at the end, we’ll compare it with if-else. What is Pattern Matching? Pattern Matching is one of the most powerful tools in Scala. It’s similar to a switch statement in java but with loads of functionalities in comparison to a switch statement. Definition Pattern Matching is Continue Reading

Futures and Promises: Functional Way of Concurrency

Reading Time: 3 minutes So, from the heading, you must be wondering that what is so special about Futures and Promises and why we are calling it the functional way of concurrency. Well, you all must be aware of the problems that are associated with concurrent programming whether it’s debugging a multithreaded program or shared state concurrency and that’s where Futures and Promises help you so that you don’t Continue Reading