Fixing the coding part of interviews

How we got here

How we actually code

  • knowledge and learning potential
  • adaptability to new situations, even if it takes a minute
  • working well with others, including critiquing and improving each others’ work
  • finding and explaining the root cause of problems
  • coming up with solutions for problems
  • explaining why something is or is not a good solution in context

The Solution: Other People’s Code

  1. You are given a short block of code in your preferred language, and a series of tests for it.
  2. Some of the tests are failing. There is also a note from the code’s author, who is on vacation this week, sorry.
  3. I ask you to talk through the code and explain what you see, including why the tests are failing.
  4. I ask you to talk through solutions for making the code behave correctly and the tests pass. This might be improvements to the code, fixing the tests, dusting off and nuking from orbit, whatever.
  • Can they understand the code? Can they explain it to me? Do they understand what parts are important and what parts are boilerplate? Do they make use of all available info (e.g.: code, comments, API documentation, etc., etc.)
  • Can they see the flaws? How quickly do they find them, and what methods do they use to find them?
  • Can they explain the behavior in human terms, and hypothesize what’s causing any problems?
  • Can they come up with plausible solutions, and explain to me why those solutions are appropriate?
  • Can they critique code in a way that will make the original coder comfortable enough to accept the input and improve the work?

Summary

Footnotes

--

--

--

Obligate infovore. All posts made with 100% recycled electrons, sustainably crafted by artisanal artisans. He/him/his.

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

An Dream Internship

Python : Restaurant discount. (The Practice from 林哲緯, NTU)

What is Flake8, and why should we use it?

Rails 5.2 and Ruby 2.5 install How-To

CloudFront as Reverse Proxy Kind of

Freshdesk- Azure DevOps Integration app Installation guide

Making the Most of JSON-API

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Alex Feinman

Alex Feinman

Obligate infovore. All posts made with 100% recycled electrons, sustainably crafted by artisanal artisans. He/him/his.

More from Medium

Full-stack Junior Engineer: 6months down the line

What is the Huffman Algorithm

Check if the parenthesis/brackets in a string are balanced or not. Python and stack Data Structures

Spiral Matrix — Problem solution