Tech Blogs

Scala 3.0

Functional Programming: A Paradigm

It’s surprisingly hard to find a consistent definition of functional programming. But I think you can define FP with just two statements: 1. FP is about writing software applications using only pure functions. 2. When writing FP code you only use immutable values. Hence, Functional programming is a way of writing software applications using only pure functions and immutable values. Now, let us understand the Continue Reading

Simple steps to make Agile Retrospective fun and effective

Before explaining sprint retrospective, I am assuming that you have a fairly good knowledge of Agile practice management. This blog doesn’t cover Agile basics. This blog is for anyone who wants to be successful in running an Agile Retrospective The sprint retrospective is just for scrum team and gives the team an opportunity at the end of the sprint to take a look back at Continue Reading

Scala-Constructor-Auxillary

Auxiliary constructor in Scala

Before starting with auxiliary constructor I request you to first visit my previous blog  Primary Constructor in Scala. Scala has two types of constructor i ) primary constructor. ii ) auxiliary constructor (secondary constructor). A scala class can contain zero or more auxiliary constructor. The auxiliary constructor in Scala is used for constructor overloading and defined as a method using this name. The auxiliary constructor must Continue Reading

monads

Back2Basics: Exception Handling – #4

In the previous series of blogs, we have seen how we can do error handling in Scala. In this blog, we will explore yet another way of handling exceptions using the functional style of programming. Scalactic is a library which provides an “Either with attitude” named Or, designed for functional error handling. Or gives you more convenient chaining of map and flatMap calls (and for Continue Reading

Iteration in RUST – Working with Loop, While, For

I hope you have already been through the following blogs in order to learn control flow and iteration in RUST: RUST: Quick Start & Exploring Cargo RUST: Begin the Journey with CODE Basically, RUST is no different compared to other programming languages in the context of loops and iteration, if you have already worked with any language like C, C++, Java, Scala, etc. then it Continue Reading

Scala-Constructor-Auxillary

Constructor in Scala

Scala constructor is used for creating an instance (object) of a class. Scala has two types of constructor. 1. Primary constructor 2. Auxiliary constructor In this blog, We will learn about primary constructor. A Scala class can contain one and only one primary constructor. Class definition class <class-name> (parameter-list) { } class keyword is used to create a class, with the class definition we have Continue Reading

Sorting in scala using sorted,sortBy and sortWith function

Sorting is arranging the data in ascending or descending order. Sorted data helps us searching easily. In mobile phone contacts are sorted in the alphabetic order it helps us to find easily a mobile number of any people. Scala usesTimSort, which is a hybrid of Merge Sort and Insertion Sort. Here is three sorting method of Scala. sorted Here is signature def sorted[B >: A](implicit Continue Reading

monads

Back2Basics: Understanding Partially Applied Functions

In this blog, we are going to talk about Partially applied functions and its use case. Before starting, first, we will emphasize that though Partial functions and Partially applied functions sound similar they are different from each other. To understand Partial Functions refer. What is function application? Applying a function is called calling a function. When we pass all arguments of the function, we can Continue Reading

CuriosityX: RDDs – The backbone of Apache Spark

In our last blog, we tried to understand about using the spark streaming to transform and transport data between Kafka topics. After reading that many of the readers asked us to give a brief description of RDDs in Spark which we used. So, this blog is totally dedicated to the RDDs in Spark. So let’s start with the very basic question that comes to our mind Continue Reading

Scala 3.0

Scala 3.0: What’s New?

Scala 3.0, an upgrade to the object-oriented, functional Scala language that started out on the JVM, will be a big step towards realizing the full potential of ideas. The intent is to publish the final Scala 3.0 soon after Scala 2.14. At the current release schedule that means early 2020. Let’s discuss 2.12 and 2.13 with the new Dotty compiler in Scala 3.0. Scala 2.12 Continue Reading

Decorator Design Pattern

Hi everyone! In this blog, we are going to discuss decorator design patterns with Scala. Let’s say I own a pizza outlet and we know that everyone has a very different taste and so there can be a various combination of toppings. If I have n number of toppings, so i will have to create p(n) = 2 * p(n-1) + 1 Subclasses. p(0) = Continue Reading

The Rise Of Scanamo: Async Access For DynamoDB In Scala

Scanamo is a library to use DynamoDB with Scala in a simpler manner with less error-prone code. Now the question is  “Why should anyone use it?” The answer is very simple. As DynamoDB clients provided by AWS are not available in Scala DSL. So there are a number of libraries available for DynamoDB to write your queries in Scala. But what makes Scanamo different from other Continue Reading

Mocking Methods for Testing Akka Http Routes

Hey folks, in this blog I am going to explain how to write unit test cases for the routes in Akka Http. First and foremost the test cases should not hit our backend logic, remember that we are only testing our routes, routes basically form the controller layer in our application. They control the request/response cycle. They tell that which business logic should respond to Continue Reading

%d bloggers like this: