Author: Yamini Bansal

Know About Temporal Coupling – The Design Smell

Reading Time: 2 minutes Let’s first know what are code and design smells. Code smells are something that demonstrate bad coding practice, whose existence decreases the code quality, which shows the lack of design quality in the code. Code smells doesn’t affect your code from working properly, rather they are just absolute infringement of principals of developing a software. Whereas design smells are something that glows(sometime and sometimes not) Continue Reading

New Chaining Operations in Scala 2.13

Reading Time: 2 minutes Scala 2.13 gave us two chaining operations, namely pipe and tap. To call methods one after the other in one go, we use chaining operations. Pipe pipe() is used to convert the input value to a new output value formed by applying the function provided to it in the parameter.Definition : def pipe[B](f: (A) => B) : BHere, the input value of type A will be converted Continue Reading

Insights on Scala

Reading Time: 2 minutes Whenever we start learning a new language, we tend to jump straight towards the syntax and writing the so called “Hello World” application. Do you ever wonder why a particular language exists in the first place? What are its characteristics? Well, if you didn’t, I did. Here are some insights on Scala. Scala is a language that can grow in new directions. With Scala one Continue Reading

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