Author: Niket Mittal


How to use Assertions in Testing Zio Programs

Reading Time: 2 minutes In this blog, we’ll talk about Assertions in Testing Zio Programs and why it’s useful for us as programmers and how we can use them. Testing ZIO Test is a zero dependency testing library which makes it easy to test effectual programs. Zio test works very well using ZIO. It provides the ability to use IOs which will be interpret by its internal runtime implementation. However Continue Reading

Want to learn about Standard ZIO Services?

Reading Time: 3 minutes In this blog, we’ll talk about Standard ZIO Services and why it’s useful for us as programmers and how we can use them.Services provide well-defined interfaces that can be implemented differently in testing environments and production environments. Build-in services When we use the services we don’t need to provide their corresponding environment explicitly. ZIO provides built-in live version of ZIO services to our effects, so Continue Reading

All you need to know about Referential Transparency

Reading Time: 2 minutes In this blog, we’ll talk about referential transparency and why it’s useful for us as programmers. The short version is this: referential transparency is a term for “replaceable code”. In this blog we’ll understand what that means, So lets begin with introduction of referential transparency. What is Referential Transparency? In functional programming, referential transparency is generally defined as the fact that an expression, in a program, may Continue Reading

Everything you need to know about Monad in Scala

Reading Time: 2 minutes Introduction of Monad in Scala Monad in scala are a category of data types. Informally, anything that has a type parameter, a constructor that takes an element of that type, and a flatMap method (which has to obey certain laws) is a monad. A monad is a mechanism for sequencing computations. Firstly, Monad is a construction which performs successive calculations. Secondly, it is an object which Continue Reading

Everything You Need to know about Dependency Injection

Reading Time: 2 minutes Introduction In software engineering, dependency injection is a technique whereby one object (or static method) supplies the dependencies of another object. we can use dependency as an object. It is a technique in which an object receives other objects that it depends on, called dependencies.The code that passes the service to the client is know as injector.It is a widely used design pattern that helps separate your components’ behaviour from Continue Reading

Why we need Solid Principles and it’s types

Reading Time: 3 minutes What and Why?? SOLID is an acronym for the first five object-oriented design (OOD) principles by Robert C. Martin. In simple words,  design principles help us to create more maintainable, understandable, and flexible software.  The goal of the SOLID principles is to reduce dependencies so that we can change one area of software without impacting others. Additionally, they’re intended to make designs easier to understand, maintain, Continue Reading

scala futures

Basic of Generics and Type Bounds in Scala

Reading Time: 3 minutes Introduction to Scala Generics Scala Generics are kind of like functions for variable types. With the usage of Scala Generics you should reuse our code. Normally, make a function for a task that we do a lot of, so instead of having to repeat the same code over and over again, we let the compiler and computer do that behind the scenes for us. Scala Continue Reading