A bad day can be the best thing to happen to you

About five years ago, when my thyroid was first failing, I went through something known as Hashimoto’s disease. What happened was that at some times I would become hyperthyroid (and therefore hyperactive), but most of the time I was hypothyroid, meaning that my brain and body were slow and sluggish.

Nine times out of ten I was sluggish, so one day when I had a job interview I decided to drink some Red Bull. I had one drink an hour before the interview, and drank the second one just before the interview.

Sadly, on this occasion my body decided to have that “1 out of 10” day and be hyperactive. Combined with the two Red Bull drinks I couldn’t sit still or think. I’m sure the people conducting the interview thought I was on speed, and more than once they told me I could relax. I wanted to tell them, “No, I can’t. I really can’t.” By the end of that miserable interview I was just glad my heart didn’t explode.

At the time this seemed like a really bad event in my life. I didn’t know what to do about my thyroid, and I felt miserable. I was at a real low point, especially in my professional life.

Fortunately one of the next things I did was to send an email to the O’Reilly folks asking if they needed someone to write the Scala Cookbook. They said yes, and the rest is history.

Looking back on that interview, I now think that if I had done well that day I might have been forced to work with Java for the next few years. Instead, I’ve been able to work with Scala ever since that day. I got to write the Scala Cookbook, and now I’m working on a book about Scala and functional programming. With the mast cell disease stuff I just went through I would have never been able to work at a “normal” job, so all of this turned out to be a blessing in disguise.

Moral: One some days things in your life can look bad, really bad. But if you keep your chin up and keep working hard, good things can still happen, and in the end that bad day can be the best thing that ever happened to you.