immutability

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

Collections in Scala (Part-2) | Set

Reading Time: 4 minutes Collections in Scala systematically distinguish between mutable and immutable collections. In the previous blog, we had covered – An Overview of Collections and its types in Scala (Im)Mutability in Scala You may go through the Collections And (Im)Mutability in Scala (Part-1). So, In this Blog we will discuss Scala Set in detail. Set – Scala Sets are iterables that does not contain any duplicate element. Continue Reading

Collections And (Im)Mutability in Scala (Part-1)

Reading Time: 5 minutes Collections in Scala systematically distinguish between mutable and immutable collection. In this blog we are gonna discuss Mutability of Immutable collections in Scala. Collections in Scala – These are nothing, just like containers. Those containers can be Sequence, Set or Map. Scala provides a rich set of Collections library which can be mutable or immutable. In Scala, Collections are classified into 3 categories with the Continue Reading

Functional Java: Practicality of programming with immutability

Reading Time: 4 minutes Whenever we have tried to learn about functional programming, these two terms have always gained our attention. The first one is pure functions and the second one is immutability. I have tried to explain what are pure functions in one of my previous blogs.  In this particular blog, we’ll discuss the practicality of programming with immutability. What does immutability mean? The definition that you can Continue Reading

The Scala Chronicles: The Beginning.

Reading Time: 4 minutes This is the beginning of a multi-part series on Scala. Starting with an introduction to usage of var and `val` followed by Control Structures. If you have some prior programming experience, you’d feel right at home. If not, I’ll try to introduce the concepts in a way that you’d understand. Declaring “var”, or maybe not! Scala allows one to declare variables mutable or immutable. Immutable Continue Reading

Let us have a tour on Scala

Reading Time: 8 minutes Hello Readers,If you want to explore what is Scala, why we use Scala and would like to explore some basic concepts of Scala, then this blog is for you.If you’re a Java programmer, for example, reading this blog will surely expose you to many concepts of Scala. The name Scala stands for “scalable language”.  The language is so named because it was designed to grow Continue Reading

Lagom and Immutability

Reading Time: 4 minutes What is Lagom? Lagom is not in disguise anymore. Everyone who’s following on micro-service architecture knows about Lagom framework. Lagom is an open source framework built with the shifting from monoliths to micro-services-driven application architecture in mind. It abstracts the complexity of building, running and monitoring micro-services driven applications. The Lagom framework includes Java and Scala APIs to simplify development of microservices. Lagom helps us Continue Reading