A new compiler, creator applications, enums, and more

Scala Dotty logo
Scala Dotty logo
Source: miro.medium.com

After it was first released in 2004, Scala has seen a wild rate of growth, with companies like Apple, LinkedIn, Twitter, and Walmart as some of its prominent adopters. The 2020 StackOverflow developer survey ranked Scala developer as one of the top-paid categories in the industry. The survey also ranked Scala #14 on the list of the languages most loved by software engineers. This adoption is surely going to increase in the future with the release of Scala 3 pitched as a big step towards realizing the full potential of the fusion of the OOP and FP paradigms in a typed setting. …

Image for post
Image for post
Source: cvedia

We are living in strange times. The era of COVID has forced us into our homes and while it's a good time to catch up with our loved ones, it also opens an avenue to work on our long-pending learning goals and try out new stuff (you know, what interests us). I recently completed some of the courses on AI and have decided to share a series of posts related to it. In today’s post, we will talk about training an Image Classification model and deploy it as well.

What is FastAI?

FastAI is an open-source library for Deep Learning, built on top of PyTorch, and provides a simplified way of training Neural Networks. The library is a one-stop solution for most training needs: computer vision, text, tabular and collaborative filtering. …

Image for post
Image for post
source: medium

Hey guys, as we go through another week in quarantine, I thought of deviating from our Scala track (Microservices, IO Monad, Macros) and explore something new & exciting.

With the increasing number of smartphone users, businesses have to focus more on continuously improving their user’s app experience. According to a survey by Google, a smartphone user has at a time, around 35 Apps on their device. With the combined App market on Google Play Store & Apple App Store, crossing more than 1M+, it is an increasingly competitive race to gain the top spot.

With the existing practices, developers have to not only write separate code for both Android & iOS (in 2 different languages as well) but also keep updating both to keep up with the latest features. It goes without saying that the developers have to maintain a uniform experience across apps on the 2 different platforms. …

Image for post
Image for post
source: google-images

Hey guys, it’s been a while since my last post. So continuing with our journey in functional programming, today I have planned to cover a slightly advanced concept of “compile-time code manipulation” in Scala. For the introduction, I would keep it simple as it involves some working knowledge of the Scala compiler.

What are Scala macros?

To put it simply, macros are an experimental feature in Scala, that allows us to do stuff during compile-time.

What kind of stuff?

Well, for starters we can modify existing code or even generate new code during the macro expansion, after which it gets compiled. …

Image for post
Image for post
source: Google

Hey guys!

In my last post, we discussed how to set up a simple REST service in Scala, wherein we used cats-effect IO Monad to wrap our effect-ful (or you can say side-effect-ing) code to ensure it remains functionally pure (referentially transparent).

Now anyone new to the Functional Programming world will be swarming with questions such as:

  • What are side-effects and Referential Transparency?
  • How does it affect my code?
  • What is this IO Monad you are talking about? and How does it magically fixes my code?

At least, these were the question I had when I first encountered the IO monad. So, I thought I should put up a little something for anyone having the above questions. …

Image for post
Image for post
source: meyou-paris

A common task for developers new to the Scala ecosystem is to set up a REST service which interacts with an underlying

Lately, there have been a lot of libraries available that allows us to build the REST APIs, like the following:

  • Akka HTTP
  • Play
  • Http4s

In today’s blog, we go through the basic steps required to get started with using Http4s, to build a REST service interacting with a
database system, using Hikari Connection Pool.

What is Http4s?

Http4s is a minimal HTTP library for Scala, for building REST services. …


Akash Srivastava

Software Engineer @ Walmart Global Tech

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store