I bought my daughter a big map of USA last week.

And a couple of day later she asked me “What is Gulf of Mexico ?”.

I said “it is just like SF Bay, a lot water surrounded by land.”

She asked again, “ why it is called Gulf (and not bay) ?”

:-(

I had no idea. So I promised her that I will read.

So I investigated it today. I learned that my answer was partially true. Surrounded by land is true , but there are some significant differences.

  • Mouth of bay is bigger in comparison to mouth of gulf .
  • Bays are “usually” small, while gulfs are big. but there are exceptions to this rule (i find bay of bengal is big)

Continuing with my effort on staying curious and investigative, today I learned about Raptors.

I live a place where you can see a particular type of raptor a lot. Talking with locals I know that this magnificent bird is called — “Red Tail Hawk”. Its very easy to see them if you go to near bu trails. They look like this, they are beautiful and intimidating.

On our year end hike on 31st December, my wife spotted this hawk on trail. My daughter was with me. …


This is a new series of posts I am writing starting today. This is inspired my questions my daughter asked me while we play together.

I realize that how less I know about the things I use or see every day. I think I am not curious & investigative. That I think is the biggest difference between a child and grownup. Children are alway curious and open minded.

I decided to fix this. I plan to be more curious , start investigating things which I come across. Just simple things . …


When you use terminal for development setup often you need to restart it to get new setting in action.
Tonight I was trying to install exhibitor on my personal computer. IT required maven, which was not pre installed on my mac mini (its a new computer). I downloaded the file and found the binary.

➜  ~ wget https://apache.osuosl.org/maven/maven-3/3.6.3/binaries/apache-maven-3.6.3-bin.tar.gz
--2020-11-29 20:43:31-- https://apache.osuosl.org/maven/maven-3/3.6.3/binaries/apache-maven-3.6.3-bin.tar.gz
Resolving apache.osuosl.org (apache.osuosl.org)... 2600:3404:200:237::2, 2600:3402:200:227::2, 2605:bc80:3010::134, ...
Connecting to apache.osuosl.org (apache.osuosl.org)|2600:3404:200:237::2|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 9506321 (9.1M) [application/x-gzip]
Saving to: ‘apache-maven-3.6.3-bin.tar.gz’
apache-maven-3.6.3-bin.tar.gz 100%[========================================================================================>] 9.07M 6.22MB/s in 1.5s…

In my last two posts (1, 2) I shared how I dealt with getting laid off in lock down and how I managed to search a job. This is last post in that sequence. I am writing it on thanks giving and I could not think of any better day to write this post.

When we face any difficult situation in our life and come out of it, we feel good. We feel good because it is over and we came out stronger. We relax or celebrate. But often time we miss to do something very important.

We forget to…


A short post about an observation which is “stuck in my mind” for past few days.

This happened in one of whatsapp group I participate. Most of the time it has only few members (out of 100+) who are vocal, others are mostly silent. Which make sense, as not everyone find every topic interesting.

A few days back I noticed that one of the member (who is mostly silent in group) participated in a discussion because of “identity” he associate with himself was being discussed. He participated because he was not comfortable with the discussion. I also think that he…


In my last post, I discussed how to stay sane if you get laid off in such highly unusual circumstances. But thats is just beginning, you still need to find the job. Game starts when you start sending application.In this post I will discuss plan I followed to find a job. It worked with me, and I am reasonably sure it will work for you.

Do not read this post if all of following conditions are true for you

  • A rock star at leetcode, can solve coding challenges without struggle.
  • You know system design like back of your hand.
  • Behavioral…


Early last month I was laid off from my job.I was laid-off in lockdown. It was a COVID related layoff. It was a bit unexpected for me. Though I was expecting some cost cutting in company but I was very sure that my job will be safe. I was working hard. But I was laid-off and so does many other.

What followed was a month long job search in the lockdown. I learned a lot in this search. In this post I am going to write how I tried to stay sane under this environment. …


This is 7th post in the series I am writing to explain how I try to write good scala code. Scala let you ride beautiful code with very less scope for error. In this post I will also touch on how to use breakable in Scala.

Personally I try to avoid usingbreakin Scala. It makes me think harder and write better programs. But I am a Scala learner too and yet not able to reach to level where I can write best possible code without using break.

Still to me sometime using break is wise. But till now I never…


This blog post is a continuation of previous posts I wrote about scala. I realized that those were more text book.

We do not do matrix multiplication in our day to day job, neither we merge arrays. Life is too easy. We write simple code. How to do that with Scala. In this short post I will cover some such example. I will write real life scala code .. and try to see how we can improve it.

In a following post I will write about dreaded foldLeft, scanLeft & reduceLeft.

Example 1

Let’s start with Option. Once you start writing code…

vikrant

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