Details
-
AboutJack of all trades.
-
SkillsJava, Angular, React, Bash, Docker and other usual stuff.
-
LocationBangalore, India
-
Github
Joined devRant on 4/21/2017
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
-
It was friday evening and almost everyone in office had left. I was assigned a bug related to some of my code changes. I called my senior to help me debug (has three years of experience, whereas me having only one year exp, who is also a very good friend of mine *always helps in debugging*).
So the code goes
switch (someEnum) {
case One:
doSomething()
// no break
case Two:
t.x = someEnum
break
case Three:
.....
}
I had recently added new enun One and was reciting the code logic to him as we were looking through code.
Him: Hey you haven't set t.x in case One. How did you miss that?
Me: No look, I haven't but a break on it. It will go ahead and set it in next case.
Him: What are you talking about? if the someEnun is One why would it execute Two case. Lets copy that line up there and try it locally.
Me: No no no wait. Are you saying that groovy doesn't need breaks in switch (Me being new to groovy but good with Java).
Him: Why would you need break in switch case even in Java?
Me: *stares at him*
Him: I'm going to execute a psvm right freaking now.
Me: *while he writes the psvm* Why did you think there were breaks in switch in any code?
Him: Shut up. *writes psvm code cursing me everywhere*
*executes code*
No way. Really??
Me: Tell me why do you think are there breaks in switch.
Him: I though they were to get you out of switch block and not execute the default block.
Me: So were you coding switch until now without breaks?
Him: I don't know man. I'm starting to doubt all the switches I have ever written.
Me: Anyway that's not the problem, so moving on.
*a while later*
Him: If a interviewer would ask me how would you rate yourself in Java. I would be like "Well I worked on various projects for 3 years in Java, but didnt know why we put breaks in switch. So you figure it out yourself."
One of the best moments in office.8 -
So this happened a few days ago
I was working on a module assigned by my senior, and was the sole developer on that module. Just when I was breaking my head to get a bash script correct (was writing a bash script for first time), my senior comes and looks at my messy script and goes "No, no, no, no that's not how you do it. "
Takes the keyboard and starts editing my script opened in vim.
Did some cool restructuring, taught me a few things about bash and while talking to me kept the keyboard back at its place.
I keep my hands on keyboard while talking to him and press
[Escape] :q!
And as I pressed Enter my face went purple/blue thinking this is not good. 😨
(I have a habit to quit as I had almost never edited and saved a vim file before)
And he sees that face and says
what happened?
No nothing. Everything's cool.2 -
I'm not that much of a people person, so when it comes to some social things i would be the last.
Bully in my school years, and no one knew who i was during Univ days.
Coding gave me Respect. When you are good at what you do, people are respectful and helpful.1 -
Just a joke I found online:
One day I was facing some issue with Outlook and I raised a ticket to get it resolved. I got a call from the Service Desk lady after some time and it went this way:
Lady: Hi I'm calling from service desk, what is the problem?
Me: (I explained the problem).
Lady: Can you please share your screen and give me the control so that I can solve the issue?
Me: (I shared the screen and gave the control. She solved it!!)
Lady: You may close the ticket from your end, the issue is solved.
Me: Thank you very much, I will close the ticket.
I opened her profile in lync and had a look at her profile. The display pic looked small in size. I instantly messaged her Employee ID to my colleague and asked him to have a look at her. He replied "She looks good in some angles".
I tried searching her FB profile with the help of her name, but there were too many results.
I started searching on Linked In instead, I found her profile this time. I was trying to enlarge the profile pic and suddenly a message popped up - it says
"I'll share my better picture with you on your outlook ID but you may please stop sharing your screen??"
😂8 -
If you ever get a problem with your Linux,
DO NOT EVER try out an answer on any random forum without reading all the comments/replies.
The problem spreads like a freaking wildfire and you will end up reinstalling Linux and losing data what wasn't backed up. (If by God's grace, you do a regular back up)2 -
6 months of internship made me realize that solving other peoples bugs is my biggest distraction.
Apparently I enjoy solving bugs more than writing clean code from scratch. 😐5 -
About a year ago, while giving interview for a pharmaceutical company. (role of software developer)
Interviewer : So why do you want to join X?
Me (in mind) : (Ok, be calm, I have practiced this and i know what to answer, just follo tbe script)
Me : (Following the script) I would like to join X because I think X could give me exposure to meet people with various skills. (Cant remember what was next) And i also think working in X would make my father proud as he always wanted me to become a Doctor.
After that I just sat there for a few seconds staring at desk contemplating my life failures and I suddenly remember Im in a INTERVIEW.
Me : And thats it. (smiling as if nothing happened)
Worst Interview ever.2