DEV Community

chovy
chovy

Posted on Originally published at dev.profullstack.com

Hoisting is not the job

I did an AI screening interview. A micro1 bot, voice on both ends, twenty minutes. It asked me to explain hoisting.

So I explained hoisting. Not the sentence from the book, the thing I actually carry around after fifteen years of writing JavaScript for money. The declaration is there before the line you wrote it on. var hands you undefined, let and const throw at you instead. And in practice you never lean on any of it, because leaning on it is how you write code that nobody can read six months later.

Wrong, apparently. Not wrong in fact. Wrong in shape. It wanted the definition off the page, the one about declarations being moved to the top of their scope at compile time. I never said the word moved, so the answer did not score.

Then it started in on closures and I hung up.

Two things are true at the same time here.

Hoisting is genuinely hard to say out loud. So are closures. Everyone who has ever explained a closure in an interview has listened to their own sentence get worse as it went. That is not a comprehension problem. The accurate explanation is longer than the socially acceptable answer length, so you compress it, and compression sounds exactly like confusion.

The other thing is that these are fifteen year old questions. They made sense in 2010, when the way you found out whether somebody knew JavaScript was to ask about the parts of JavaScript that surprise people. It worked then. I asked them myself.

It measures nothing now. I do not hand write the code that hoisting is a hazard in. Neither does anyone I would want to hire. The model writes it and I read it, and what I bring to that is knowing this thing falls over at ten thousand rows, or this schema turns into a migration nightmare in the spring, or we do not need this service at all. That is the work. None of it is recall.

Which leaves the screen measuring the one skill that has been completely automated, using a machine that automated it.

So here is what I want instead, and I am done being coy about it. One phone call. Voice, no camera. CEO, or CTO, or both, I will happily do both. Ask me about architecture. Put your actual system in front of me and ask what I would do to it. Make me defend a decision I already shipped. Half an hour of that tells you more than any screen ever has, because there is nothing to memorize and no way to fake it.

No video call. No coding challenge. No take home. No whiteboard in a room. Everything I have shipped this year is public and every piece of it has a URL on it. Go read the code.

I know how that reads. It reads like someone with enough leverage to be difficult. Fine, maybe. But the other option is spending an hour proving I memorized the spec's preferred wording for a behavior I have never once had to think about on purpose, and I would rather just not.

The first company to figure this out is going to hire the people everyone else is filtering out.

Top comments (0)