scala

What Are Side Effects

Reading Time: 3 minutes SIDE EFFECTS A Side effects is something that changes the state of computer or your programme beyond just giving back a value. Side effects are considered bad, because, a function with side-effects are unpredictable ,depending on the state of the system. When a function has no side effects we can execute it anytime, it will always return the same result, given the same input. When Continue Reading

The deadly combination of Akka with Scala

Reading Time: 3 minutes Hi, today in this blog we are going to work with Akka using the Scala Programming Language. In today’s blog, we are going to learn the basics of the Akka using Scala. What are we going to learn today? Learn the Basics of Akka Create Akka System and Akka Actors Make use of Akka actors Create an application using Akka and Scala About Akka What Continue Reading

Object-Oriented Programming in Scala

Reading Time: 3 minutes Object-oriented programming (OOP) is a computer programming model that organizes software design around data, or objects, rather than functions and logic. Scala is also an Object-Oriented language and in this blog, we will see how we achieve that in scala. Classes in Scala Class is like a blueprint for a real-world entity which we call object in programming languages. It provides the initial values for state Continue Reading

Basic String Operations and Interpolation in Scala

Reading Time: 3 minutes In this blog post, we will talk about strings and some basic string operations. Then, we will discuss string interpolation in Scala. What are Strings ? A string in Scala is a collection of characters. In Scala, string objects are immutable, meaning they can not be changed after they have been created. What are string operations ? Task performed on a string to get any Continue Reading

scala

Recursion v/s Loops in Scala

Reading Time: 3 minutes Loops need mutation, As it keeps changing the value of the variable, Scala hates mutation. Why? What is Mutation? A mutation is changing an object, variable and is one of the common side effects. Now the question arises why does scala hate mutation? Mutation might result in ambiguity, unanticipated errors, and a difficult time debugging the problem. Mutation makes it more difficult to decipher code. Continue Reading

Future Type Operation with Scala

Reading Time: 6 minutes Introduction Scala Future represents a result of an asynchronous computation that may or may not be available yet. When we create a new Future, Scala spawns a new thread and executes its code. Once the execution is finished, the result of the computation (value or exception) will be assigned to the Future. Type Future Operations Map When we have a Future instance, we can use the map method to transform its successful result Continue Reading

Scala Constructor Arguments and what difference does it make

Reading Time: 3 minutes Introduction to Scala constructors Scala constructors might feel a little unusual especially if we come from a more verbose language. Constructors in Scala are of 2 types: Primary Constructor Auxiliary Constructor This is how we declare a primary constructor in Scala: In this blog, we will see different ways to pass arguments in the primary constructor and how it affects their visibility. Passing arguments in Continue Reading

How To Use Pattern Matching

Reading Time: 3 minutes Overview In this blog, we will show a functional feature of Scala which is pattern matching. If you have used Java or .NET in the past, it may at first sight appear similar to switch statements. But, Scala’s pattern matching is a lot more powerful! Different ways of Pattern Matching 1. Pattern matching – a very basic example Suppose you want to test a variable called donutType. In the case that its value Continue Reading

Concurrency and Parallelism In Akka

Reading Time: 3 minutes After going through the previous blogs, we are now familiar with the basics of Akka. Moving forward let us have a look at concurrency and parallelism in Akka actors. Concurrency and parallelism are related concepts, but there are small differences. Message Processing in Akka Actors First, let us have a look at message processing in Akka actors. Akka follows single-threaded illusion. That means each actor Continue Reading

scala

Understanding the Concept of OOP: Its Four Pillars

Reading Time: 3 minutes This blog is in the continuation of its first part where we discussed the basic part of object-oriented concepts. In this blog, we will cover four pillars in the object-oriented world of programming in Scala. OOPS Four Pillars Four pillars are basically the software design principles that help you to write clean Object-Oriented Code and these are: Abstraction Encapsulation Inheritance Polymorphism Let’s take a closer Continue Reading

nifi

Apache Nifi – The Ingestion tool

Reading Time: 3 minutes What is Apache NiFi ? Apache Nifi is an open source software for automating and managing the data flow between systems, which Leveraging the concept of Extract,Transform and Load. Apache Nifi a powerful as well as reliable system to process and distribute data. Additionally Apache Nifi has a web-based user interface for design, control, feedback, and monitoring of dataflows. History of Apache NiFi Based on Continue Reading

It’s all about the Sets and Maps in Scala

Reading Time: 5 minutes INTRODUCTION Data Structure can be defined as the group of data elements that provides an efficient way of storing and organizing data in the computer so that it can be used efficiently. Some examples of Data Structures are arrays, Linked List, Stack, Queue, etc. The sets and maps are the most common topic in collections where can use so many places.scala’s collection framework provides two important interfaces: Continue Reading

“Brief Description On Reactive System/Manifesto”

Reading Time: 2 minutes What is Reactive System ? A reactive system is an architecture that allows multiple individual applications to be merged into a single unit. Responding to their surroundings, being aware of each other. The first formalization of this term passed with the creation of the “Reactive Manifesto” in 2013. By Jonas bungle WHO, By transcending with many of the brightest minds within the distributed systems industry. Continue Reading