Author: Miral Gandhi

Features Introduced In Dotty

Reading Time: 2 minutes DOTTY is a faster compiler that comes with Scala 3.There are many new features introduced in DOTTY that are discussed further in this blog, but before reading this blog please go through the blog introduction on Dotty, to get a basic idea about dotty.

Working with Arrays In MongoDB

Reading Time: 2 minutes So, As you all may know unlike any other conventional DB, MongoDB allows us to store collections like arrays and provides us with multiple functionalities to work with them, So In this blog, we will take a look at how we can work with arrays in MongoDB.

Stream a file to AWS S3 using Akka Streams

Reading Time: 2 minutes In this blog, I’ll show you how to stream a file to AWS S3 using the library –gfc-aws-s3, To use the above, add to your dependencies “com.gilt” %% “gfc-aws-s3” % “0.1.0” The library contains akka-stream Sources and Sinks to Stream data from and to S3 From my blog on “Upload file in Akka Http“, you can see how to obtain the stream of a file, Continue Reading

Trying to use form field and file upload directive together in Akka-Http?

Reading Time: 2 minutes If you are reading this then probably you have encountered the issue that comes while accessing fields with uploading a file, and if not then let me first tell you what’s the situation that I’m talking about here, Let’s see the code where we try to use fileUpload directive and formFields together

Error Handling Using EitherT

Reading Time: 3 minutes Are you aware of Either, if yes then you must know how it’s use for error handling , but don’t you think things get messy when it is placed into effectful types such as Option or Future, a large amount of boilerplate is required to handle errors.

Table Driven Approach For Testing

Reading Time: 3 minutes Most of us would have been in a situation where multiple test cases are same but the input data isn’t, Or even when input data is same and is used for multiple test cases. So In cases like these we can use Table driven approach, it is a way of testing that allows you to write minimal test code with increased readability.