Scala

Spring custom validations

Reading Time: 3 minutes While building applications and services it is very important that we maintain data integrity especially if they are data centric. It is crucial to have control over the data that the application interacts with to ensure it behaves as expected. This can be done using validations. Many times the data received may get corrupted before reaching the application or the user may provide wrong inputs. This Continue Reading

Indexes in MongoDB

Reading Time: 4 minutes In any database, indexes in MongoDB support the efficient execution of queries. Without them, the database must scan every document in a collection or table to select those that match the query statement. If an appropriate index exists for a query, the database can use the index to limit the number of documents it must inspect. Keypoints for Indexing As you create indexes, consider the Continue Reading

Reading SBT dependency tree

Reading Time: 3 minutes In this post, we are going to look into reading sbt dependency tree and resolving one of the scenario using an example. While upgrading our library versions of our repository, we often fall into different issues like compatibility between library versions and so on. In this situations dependencyTree is one of the tool, which can help us sneek into different versions of library our build Continue Reading

Writing Unit Test for Apache Spark using Memory Streams

Reading Time: 2 minutes In this post, we are going to look into how we can leverage apache spark’s memory streams for Unit testing What is it ? Apache spark’s memory streams is a concrete streaming source of memory data source that supports reading in Micro-Batch Stream Processing. Lets jump into it We will be using a memory stream writing some test data in memory as a stream. We Continue Reading

Cloudstate (Part 6): Reversing the Tradition

Reading Time: 2 minutes In our previous blog post, Cloudstate (Part 5): How to work with it?, we learned how to work with Cloudstate. But in this blog, we are going to learn that Cloudstate has reversed the traditional architecture of multi-layered application. What is the Tradition? In a traditional multi-layered application, each layer (of the application) will invoke another layer to retrieve and manipulate its state. This approach Continue Reading

Recursion in scala in a simple way

Reading Time: 4 minutes What is Recursion? It is the technique of making a function call itself directly or indirectly and the corresponding function is called a recursive function. This technique provides a way to break complicated problems down into simple problems which are easier to solve. Recursion may be a bit difficult to understand and it can take some time to get your head around how it works Continue Reading

DAO | Abstraction of the Application/Business layer from the persistence layer

Reading Time: 3 minutes DAO…. In this blog we’ll be learning about data access objects , it’s pros and cons and implementation in Scala Language. What is DAO …. ? It’s an abbreviation of Data Access Object. It is a structural pattern that provides an abstract API to isolate the application/business layer from the persistence layer . This Layer could be a database or any other persistence mechanism The main purpose Continue Reading

OS in Rust: Incorporate VGA buffer: Part-7

Reading Time: 4 minutes This series pertains to create a basic Operating System using Rust Programming Language. This series aims to learn and understand the basics of the Operating System.Through this, you will get some ideas about the internal components of the Operating System and how they interact with each other. This article pertains to adding few more functionalities to VGA text mode in our kernel.

Maven | Getting Started with Maven

Reading Time: 4 minutes In this blog we aim to setting a maven with HelloMaven example. Maven.. What is it ? Generally mvn is a “Build tool” . It is a site and documentation tool which extends ANT to download dependencies and plugins , set of reusable ant scriptlets. This is an attempt to apply patterns to a project’s build infrastructure in order to promote comprehension and productivity by Continue Reading

Tailored Service Templates for higher productivity, reduced wastage and streamlining the development

Reading Time: 6 minutes One of the questions that every developer asks is where to start and what all is needed from my service other than the Business Requirements. Every organization nowadays is building small micro-services and these services are being build by various autonomous teams. The interesting part is that every team starts build the same chassis or initial part of the service on its own. This leads Continue Reading

Scala 3.0

An Introduction to Givens in Scala 3

Reading Time: 3 minutes In this blog, I am going to discuss about a new and exciting feature which is being introduced in Scala 3 – givens. In my previous blog posts, I have written about some other new Scala 3 features. You can check them out here. A little bit of the background first. Scala 2 has a very powerful feature called implicits. While implicits have been extremely Continue Reading

OS in Rust: Incorporate VGA buffer: Part-6

Reading Time: 5 minutes This series pertains to create a basic Operating System using Rust Programming Language. This series aims to learn and understand the basics of the Operating System.Through this, you will get some ideas about the internal components of the Operating System and how they interact with each other. This article pertains to the incorporation of VGA text mode in our kernel. Here we’ll create an interface through which we can Continue Reading