Author: Harshal

ZIO Monads, Effects, and ZLayer With Scala

Reading Time: 3 minutes Overview In this blog, we will talk about ZIO Effects and ZLayer. To recognize the fundamentals of ZIO do check out this blog. The ZIO library is centered on the ZIO type. Instances of ZIO are mentioned as “effects”, which describe something a software normally does: printing, computing, beginning connections, analyzing, writing, and lots of others. However, it’s really well worth stating that — similar Continue Reading

Everything you need to Know About ZIO

Reading Time: 3 minutes Overview In this blog, we will look at ZIO Effects and Fibers including how to implement fibers and make them work in parallel. First of all, let’s briefly know What is ZIO? What Is ZIO? ZIO is a purely functional, type-safe, composable library for asynchronous, concurrent programming in Scala. It is perfect for mid to large-scale projects that require a lot of concurrency and speed. Zio solves complex, Continue Reading

All you need to know about Collections In Scala

Reading Time: 4 minutes Introduction Scala has a rich set of collection library. Collections are containers of things. Those containers can be sequenced, linear sets of items like List, Tuple, Option, Map, etc. The collections may have an arbitrary number of elements or be bounded to zero or one element (e.g., Option). Types of Scala Collections There are two types of collections in Scala – mutable and immutable. Let’s point Continue Reading

Actors In Akka

Reading Time: 4 minutes Overview In this blog, we will learn about actors in Akka. Before talking about Actors in Akka we need to know what is Akka. Akka is a toolkit for building highly concurrent, distributed, and resilient message-driven applications for Java and Scala. In our case we talk about use of Akka In Scala. What is an Actor in Akka? An actor is essentially nothing more than Continue Reading

How We Handle Exception In Scala!

Reading Time: 3 minutes Introduction In this blog, we’re going to talk about exception handling in Scala. We’ll explore different ways of handling them, using different constructs provided by the language. What’s an Exception? An exception is an event that changes the normal flow of a program. It is a mechanism what is used to handle abnormal conditions. You can also avoid termination of your program unexpectedly. Exceptions are checked Continue Reading

Introduction To Functional Programming With Scala

Reading Time: 3 minutes 1. Overview Of Functional With Scala In this blog, we will learn about functional programming concepts with Scala as a programming language. 2. What is Functional Programming? Functional programming is a programming paradigm that uses functions as the central building block of programs. In functional programming, we strive to use pure functions and immutable values. First of all, each function must be a pure function. But what does Continue Reading

Lets Know About Generics And Variance In Scala

Reading Time: 5 minutes Generics classes are classes which take a type as a parameter. This means, that one class can be used with different types without actually writing down it multiple times. These are particularly useful for collection classes. 1. Overview In this blog, we’ll look at the advantages of Scala generics in implementing containers. We’ll examine how Scala geneics provide type-safety while helping us to stick to Continue Reading