Whiteboard interviews suck! (but you should practice anyway)

dvddpl

Davide de Paolis

Posted on February 11, 2019

Whiteboard interviews suck! (but you should practice anyway)

Whiteboard interviews are getting more and more common nowadays. In the past, at least from my first-hand experience, the interview process was:

  • recruiter call
  • call/video introductory chat with the company
  • technical interview
  • interview with HR

in the last couple of year it became mostly:

  • recruiter call
  • a coding challenge at home
  • call/video introductory chat with the company
  • technical interview
  • session of whiteboard coding
  • interview with HR

me at the whiteboard

Well, i am fine with formal interview and "informal" chats - I was even invited at lunch from a couple of startups, and while some might find awkward to eat in front of other people that are in fact assessing you, i found that a very effective way of seeing the candidate in the day-to-day company environment, chatting about passions and hobbies, talk about your dreams and goals and often discussing technical stuff ( which for me often is same as way of talking about my passions).

but I really hate coding on the whiteboard:

  • I really feel a lot of pressure, the weight of 2 or 3 pairs of staring eyes behind my shoulders
  • my calligraphy looks like that of a teenage psychopath
  • since I rely heavily on IDE autocomplete features, most of the time I don´t remember the proper syntax or API
  • most of the time the task and its constraints are something that I hardly encounter in my daily job.

Why the heck should I now know to parse HTML into markdown - there are tons of NPM modules out there doing that. It would be very stupid to be reinventing the wheel ( same is through for reverting a string or implement a bubble sort ).
If I am writing mostly in a functional approach using map.filter.reduce ( and you expect me to do that if I get the job) why are you forbidding me to use them and want to see how I struggle with writing one loop only and hashmaps?

Don't get me wrong, being aware of the Big O Notation and the impact of chaining map.filter.reduce instead of doing everything in one single loop is very important to avoid leaks or performance issues, but it's more about knowing how they work and when to use what, not about knowing the implementation details.

In fact, I would enjoy a technical chat about how I would implement HTML-markdown converter, the steps to follow, possible different approaches, analysis of time and space complexity, performance optimizations etc, but not actually writing it.
I would also find very interesting to discuss two different libraries that do that, quickly check their implementation and discuss the pros and cons. That, in my opinion, would show that you understand the concept, its implementation and that you would be able to pick the right tool for your task.

Having said all that, we should practice whiteboard coding. Exactly for all the above reasons and especially because it is uncomfortable.
Everything that pushes you out of your comfort zone will make you grow and improve.
out of the comfort zone

Since you are deprived of things you take for granted like autocompletion, code-linting, compile-warnings and fancy helper methods ( that are native or come from other libraries does not matter) you are forced to think and code in a different way. You have to approach the problem in a different way, and there your creativity sparkles.

Furthermore, it is always good to refresh, or learn at all, basic Math and CS skills.
And mostly is good to learn to manage stress while presenting your ideas to others and do it in an ordered and clear way, be it an interview, a presentation o simply a code design meeting.

For a few months, I started meeting once I week early in the morning with a colleague and we give us 15 minutes to solve an easy task from Hackerrank. At the beginning every time it was my turn I felt that I would not be able to hold the marker and my brain started melting.

Now it got better and even if I sometimes struggle with tasks that in the tranquillity of my desk would be a breeze I must say it is lots of fun too.

So, go for it.
Pick some problem from one of the many coding challenge websites and practice. (the one I was solving at the whiteboard above was this)
Challenge yourself and prepare for your next interview!

💖 💪 🙅 🚩
dvddpl
Davide de Paolis

Posted on February 11, 2019

Join Our Newsletter. No Spam, Only the good stuff.

Sign up to receive the latest update from our blog.

Related