Author: Yamini Bansal

Do you know about Union Types in Scala 3.0?

Reading Time: 2 minutes You might have learnt union of subsets in mathematics, similarly, we have union types in Scala 3.0 as well. Let’s see, how can we use union types while programming in scala: What is Union? Union of two things under consideration, is the collection of elements which can belong to either of them or both of them . Let’s understand with respect to set theory:Set s1 Continue Reading

Do you know about Intersection Types in Scala 3.0, Dotty?

Reading Time: 2 minutes You might have learnt intersection of subsets in mathematics, similarly, we have intersection types in Scala 3.0 as well. Let’s see, how can we use intersection types while programming in scala: What is Intersection or Conjunction? Intersection of two or more things under consideration, is the collection of common things among them. Let’s understand with respect to set theory:Set s1 = {2, 3, 5}, set Continue Reading

How to use Snapshot of Library in Maven Project

Reading Time: < 1 minute So, for today I bring you a real-time problem which I and my teammates faced. One of my teammates contributed to an open-source library, Scanamo, and that contribution was very crucial for the next release of our project. We could not keep waiting for the next release of the library to happen, so we learnt a workaround for that. That is, using a snapshot of Continue Reading

The lifecycle of an Actor in Akka

Reading Time: 3 minutes Hola Amigo, I presume you are already familiar with the Actor Model i.e why you are looking for the lifecycle of an actor. So, let’s dive deeper into the Akka Actor Lifecycle. So, what happens when we create an actor and when it stops? The lifecycle of an actor starts automatically after its creation(instantiation). A started actor can right away start processing messages. So, here’s Continue Reading

Why Futures over Threads?

Reading Time: 2 minutes Hola Amigo, have you ever wondered that when we can achieve concurrency or parallelism with threads, then what on Earth are other available options doing. Let’s have a closer look. Threads: A unit of concurrency Same old theory repeated once more,“Threads are nothing but independent paths of execution. These can help in efficient use of the resources when used cautiously.” What we can achieve using Continue Reading