Definition: A NullPointerException, is what a developer would encounter when he misses covering all the bases in the code. i.e forgets to instruct the computer to handle a scenario, because it seems trivial to him.
"Wise men speak because they have something to say, fools because they have to say something" --Plato
My name is Swapnil Patel and today, I've to say something-
It was then, all of the sudden, I was hit by life!
"NullPointerException" it said.
Perhaps, I didn't take into account the case, that the variable could remain unassigned. But then, where did I miss? How can it be? That one edge case! Was it not?!
With the rain coming down, it had been a long wait in the queue outside the embassy. All of that, for a twenty seconds interview. It were those twenty seconds that were to decide where I was to dine that day.
The interviewer passed a blue paper from the other side and there it was. It was home, the dinner.
That was my visa interview.
The dinner was still too far. I just had a career plan fall apart in seconds and my head still had 8 more hours to him till home.
Interview, there was one more, just months before the visa day. I was referred by a friend of mine working at 'the MNC'- one, I'd and many like me would die for. It was a virtual one, I got three machines setup before me for the interview. There was a panel of interviewers on the phone. It began with the intro and some basics, then a problem to code live. I started to code. But, something struck hard then! I told the panel I will not be able to proceed. I ended the interview!
What the hell did I just do?! I had my reasons, but no logical ones. Not one I'd be able to explain. I'd initialized variable but no value. This could've been a terrible decision. And it was!
I was home. My subconscious had the dinner.
'What now?!' was the question. There were options all over the place. A job, masters prep, civil services prep, design school...?!
I joined a startup a month later. It was yet another variable. A temporary one, as it was intended, but then- "The universe works in wonderful ways"
A couple of months later, there was one more interview queue. This time I was on the other side, to recruit interns for our company. The variable was no longer a temporary one!
Sometime later, I received a letter(and some goodies) from Boston, the very same place I was to be, at the university. The letter was from the Developer advocate of a firm, now acquired by Google.
"Regards from Boston" it said.
"The Irony!" I thought, "The universe never lets you down in that area"
Well, I'm a mystic and an engineer. I believe there is an order in anarchy. A structure to the chaos. An algorithm, perhaps!
It is an experience common to all men to find that, on any special occasion, such as the production of a magical effect for the first time in public, everything that can go wrong will go wrong. Whether we must attribute this to the malignity of matter or to the total depravity of inanimate things, whether the exciting cause is hurry, worry, or what not, the fact remains.
And even then, if one missed to consider the possibility of the event-
It's a metaphor, a one-word poem!
The good part is, every time there is an Exception, I've no one else to blame. Because I know, every line of the code and every mistake, is my own!
Subscribe to theback.space
Get the latest posts delivered right to your inbox