It’s never just that easy

An oceanside view of a cliff and winding road.
An oceanside view of a cliff and winding road.
Photo by Ante Hamersmit on Unsplash.

Text search is a very common requirement in most applications, and you would expect most databases to support text search out of the box if you create an index on the field.

But when I tried to implement text search for my app, it turned out to be much more complex. After some research, I’ve uncovered three main ways to implement text search with MongoDB.

1. Create a Text Index

This is the first approach that you’ll find if you Google “full text search in mongo.” It’s the most efficient way to implement text search according to MongoDB’s documentation. …


Is it that simple? Oh wait, no!

Image for post
Image for post
Photo by revac film’s&photography from Pexels

Microservices are something that feels very natural when you have been working with monoliths in the past and are tired of the overheads and errors that arise in maintaining a monolith application.

My first microservice was a user service that would manage login/logout/auth for a user. We were adding more logins to our application because just one Google login wasn’t enough. I knew we’d be adding/removing more ways to log in users in the future. …


You read, you learn, you grow!

Image for post
Image for post
Photo by Road Trip with Raj on Unsplash

Artificial Intelligence is everywhere these days. A lot of real life applications have been developed in the past decade leveraging various sub-branches of A.I. Facial Recognition, Self Driving Cars, Optical Character Recognition, Personal Assistants like Google Home and what not.

And we are still just scratching the surface. A lot of new mind-blowing researches are still in progress and people are trying really hard to find novel applications for these technologies. In the coming decades, we might completely take for granted the cutting edge A.I. tech today(thanks to the exponential growth)

For an average software engineer, these advancements are just…


Explore the growth of Deep Learning over the past decades!

Image for post
Image for post
Frank Rosenblatt with Perception from Reddit(Left) & ANNs from Neural Networks and Deep Learning(right)

Most of us know Deep Learning to be a 21st Century invention, but believe it or not, it has been around since the 1940s.

The reason most of us are unaware about Deep Learning advancements/researches of 20th century is because the approaches used back then, were relatively unpopular due to their various shortcomings and the fact that it has had a couple of re-brandings since then.

New original research in any field requires an understanding of the history, evolution and major breakthroughs that led to the popularisation of said field. Deep Learning is no exception.

A broader look at the…


Make use of your downtime and read something good

Image for post
Image for post
Photo by David Iskander on Unsplash

I hope you are taking good care of your health and maintaining social distancing to help flatten the curve of SARS-CoV-2 infections.

We have no other option but to stay at home during these trying times, but we can invest this time in ourselves to come out of this pandemic better.

I thought it would be good to list a few books that will help you strengthen and elevate your computer science knowledge. Everyone from a beginner to an advanced professional can better themselves from these books.

1. The Algorithm Design Manual by Steven Skiena


It’s much easier than you think

Image for post
Image for post

Building a screen recorder with a cross-platform tool like React Native means having to write a lot of native platform-specific code, so it would make sense to skip React Native. However, I implemented this solution as a small feature within a larger app built in React Native.

I may do another tutorial later showing how to implement the same thing in Android.

If you follow this tutorial you’ll also be able to use most of the code to build a screen recorder app for iOS without using React Native.

You will need an iOS device with iOS v12.0+ as screen…


Image for post
Image for post
Photo by Zoltan Tasi on Unsplash

Microservice is quite the buzz word these days, so I thought it would be good to introspect my last year that I had spent working with them. Previously, I was working on a Monolith Legacy system in the same organisation, so I have a clear picture now about what are the benefits of a Microservices architecture.

There are lot of differences between both approaches but I have curated top 8 important ones here.

  1. Backward Compatibility
  2. Parallel Development Cycles
  3. Network Failures
  4. Code Duplication
  5. 3rd Party Libraries
  6. Deployments
  7. Cold boots
  8. Cost Optimisation

Let’s jump right in…

Backward Compatibility

When working with monoliths…


Image for post
Image for post
Photo by Annie Spratt on Unsplash

If you choose to read this post, I will need something from you, a commitment. You will listen closely and not judge me until I’am finished. If you cant commit to that then please go back and read another random post about 10 way to blah blah blah…

If you choose to stay, remember you choose to be here, whatever happens from now on, is not my responsibility, it’s yours. So, pay attention! This post will not be just about some points, we’ll talk about some serious stuff and call for introspection and improvement.

So you want to be a…


Image for post
Image for post
Photo by Andrew Leu on Unsplash

Random Person: What are you doing?

Me: I’am reading some books that i think will give me a better understanding of the world.

Random Person: But why do you want to understand the world?

Me: You know… to make better decisions.

Random Person: I don’t think you can really define a set of rules that would explain how the world works, it all random.

Me: But what about the centuries of science and discoveries about the laws and principles that we today take for granted. From Archimedes to Newton, from Einstein to Hawking, they have all tried and succeeded to…


Image for post
Image for post
Photo by Mike from Pexels

I am sure that most of us would easily answer this question within a minute or so if asked, what do you want the most in life, is there something that you want to purse with pure passion?

A few years back, I wanted to earn money more than anything and I had focused myself on things that would help me do that. But now that I have enough to fulfil my daily needs and some selfish desires 😉, I have developed a new found love for knowledge. And I find myself wanting knowledge more than money now.

So I…

Varun Bansal

Developing instincts for the right way!

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