It was dark outside the train window, and even if you could see, all you could be seeing was snow. Houses covered in snow, roads covered in snow, cars covered in snow, and trees covered in snow. Life covered in snow.
In the months following my divorce, I preferred to be left alone to myself. The only reason I paid the extra money for a first-class ticket was to keep human contact to a minimum. This wasn’t one of those train journeys I was looking forward to. Thanks to the heavy snowing over the weekend. The train was half-empty, mostly…
undefined get coerced to
not-a-good-value. But mastering how these two values mean two completely different things helps you write bug-free code instead of relying on guesswork.
(To simplify, we will use the terms
undefined are special
non-value values to represent nothingness. …
I misheard the words of an unsung song
By a singer who was never born
To parents who never made love
On a radio that never needed power
In a house that had no walls
In a city that was never built.
I heard those words from a language
That was spoken by the people
In the dreams that were never dreamt
By a sleeper who is ever awake and shining
Blinding the light of a thousand suns.
I heard the flute made from a bamboo tree
That grew from a seed that was never sown
And the sound made by the…
One of the often used coding patterns with functions has got a fancy name for itself: Immediately-invoked Function Expression. Or more dearly known as IIFE and pronounced as “iffy.”
I originally wrote this short story for a writing prompt on WritersDigest Forum. I am sharing it here with a few minor edits.
“You know what’s the toughest thing for the human brain to do?” he asked me after a few minutes into our casual chat.
“I don’t know. A lot of things, maybe. What are you? A neuroscientist?”
“Heck, no. I am no scientist. I am just an old man with a lot of guilt. A lot of secret burden I had been carrying from the past thirty years,” he said rather contemplatively for his lifeless face. …
First, let’s try to understand what  +  will evaluate to. Questions like these are better answered by consulting ECMAScript specification. In this case, we are interested in the specification for the + operator to begin with.
(Link to the ES6 specification for addition operator.)
The first key takeaway from the specification is:
The addition operator either performs string concatenation or numeric addition.
So, it’s obvious that + operator is overloaded in the language to work with two different primitive types string…
( I initially wrote this as a quick response to a post here. But the post was later deleted orphaning my response. So I decided to edit and post this to share my thoughts or my two cents if I have to use that cliche! )
There was a lot of drama on social media and mainstream media about India’s poor performance at the recently concluded Rio Olympics. Being the largest democracy in the world with 1.2 billion people, we ended up winning only two medals. …
When anyone baffles me with a “Why do you write?”, I actually think it’s a more civilized way of asking “Are you crazy?”
I always wanted to be a writer ever since I knew how to hold a pen. Well, that’s a plain lie. I sometimes wish how wonderful my life would be if I always knew from my childhood that I wanted to be a writer when I grow up. A writer writing in English, that is. How I secretly envy Orwell and other blessed souls.
I grew up studying in my mother tongue for the first twelve years…
So you want to write a novel. Where do you start? Not all of us have the time and resources to torture ourselves through an MFA in Creative Writing.
In May this year, I took the plunge and enrolled in an online novel writing course from Curtis Brown Creative. It’s a six-week course, and it was the first time they offered it to public. You can find more details on their website: Staring to write your novel. No application or submission of work is needed to enroll in the course. …