Author: Sonu Mehrotra

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

What is Open Class in Scala 3?

Reading Time: 2 minutes At Knoldus, we are pursuing to learn and share Scala 3 features with the community. In that quest, I am writing this blog to talk about a new feature being introduced in Scala 3 – Open Class. You can read about our other blogs on Scala3 here. Story till Scala2? In Scala 2, all classes are by default available for extensions, and we need to Continue Reading

Introducing Transparent Traits in Scala 3

Reading Time: 2 minutes I am learning Scala 3 and as I go along, I want to share about it with our community. In this quest, I had written an article a few days back on Trait Parameters in Scala 3. Check it out! In this article, I am going to write about a new feature of Scala 3, called Transparent Traits. Firstly, we will look into the problem Continue Reading

Introducing Trait Parameters in Scala 3

Reading Time: 2 minutes At Knoldus, we are endeavoring to learn Scala 3 and share it with community. There are multiple blogs which have been published here on Scala 3 which you can visit to get to know about other new features of the language. In this blog post, I will take you through the feature of trait parameters introduced in the language. Traits in Scala 2 Traits are Continue Reading

DAML Fundamentals: Optional Data Type

Reading Time: 3 minutes DAML is a powerful open sourced language created to write distributed applications quickly, concisely and correctly. On this site, we have got blogs for you that help you in getting started with DAML. Just type DAML is the search box and hit enter 😉 DAML provides different data types to build the ledgers. You can get a quick overview of some of these types by Continue Reading

Table Driven Testing in Scala

Reading Time: 3 minutes As a software developer, I ensure to write unit tests for the code which I write (and at times the missing unit tests for the existing code). My aim has been to ensure to cover all the cases that arise out of the code written and therefore I face challenges in this too. Because of my endeavour to write a sufficiently strong test suite for Continue Reading

Writing better Feature Files!

Reading Time: 4 minutes My endeavors in recent times have exposed me to BDD in general and to Feature Files in specific. I have over the time realized that there are nuances in writing good FFs, which we tend to overlook. I suggest we do not. In this blog post, I am wanting to give some checkpoints to be considered while writing FF. Do not make grammatical errors. Our Continue Reading

Being a Software Consultant: Knoldus way

Reading Time: 3 minutes I have been now working as a Consultant for 2 years and I wanted to document my insights and understanding towards the designation. I want to take you through the benefits and the sporadic hardships (luckily!) that have shaped my understanding of the work we do. As a Software Consultant, our involvement in the decision making for the project has been immense, compared to what Continue Reading

Scala+Gradle+Cucumber = A holy alliance

Reading Time: 3 minutes It has been some long time that I have not written a blog regarding my new technological learnings. And that is the void I will be wanting to fill in the coming days. This one being the start. So, I have been working on work items that include Scala, Gradle and Cucumber together. That’s right. Together. And with all that I was able to learn/read Continue Reading

integrating Cucumber with Akka-Http

Blending Cucumber, Cassandra and Akka-Http

Reading Time: 2 minutes Folks, Knoldus has always pioneered the deep diving into the best ways to use cutting edge technologies. In the past few days, one of our team carried this deed by integrating Cucumber with Akka-Http, Cassandra and of course, Scala. In this blog, we reach out to you to explain and show how this can be done. Cucumber Cucumber is for Behavior Driven Design (BDD). The Continue Reading

Testing Rejection Handling in Akka-Http

Reading Time: 2 minutes In my previous blog, I discussed how to handle rejections in Akka Http. You may find it here. We left it on terms to explain the testing of it later. Keeping the promise 😉 In this blog, we will learn how to be able to write the test cases for rejection handling in Akka-Http. We will be using Akka TestKit and Akka-Http TestKit. Dependencies are Continue Reading

Rejection Handling in Akka Http.

Reading Time: 3 minutes While working on one my project which uses Akka Http for routing, I came across a situation where we had to use custom Rejection Handler. It was a worthy thing to be shared with all and hence this blog 😉 Rejections are used by Akka Http to help us handle error scenarios more aptly. When the filter directives do not let a request pass through Continue Reading

KnolX – Akka Streams

Reading Time: < 1 minute In one of our KnolX sessions, we discussed on Akka Streams. It was a step by step introduction to Akka Streams. It started with the need for reactive streams and moved on with a discussion on components of Akka Streams, error handling in Akka Streams and testing in Akka Streams. You may find the slides of the KnolX below : You can also watch the Continue Reading