goodfitdocs

Code Walkthrough

They wrote it. Can they explain it?

Few people write every line by hand anymore, and that’s fine. What you need to know is whether they understand the code they hand in. Code Walkthrough ends a coding test with three spoken questions about their own lines, and shows you every answer.

How it works

Submit, then say why.

Candidates know from the start screen that the test ends with a short call about their code. It happens on the same screen, right after they finish.

  1. 1

    The test, as usual

    Same problems, same editor. Anyone who runs or submits code goes straight on to the call.

  2. 2

    Three questions, from their code

    Written from what they handed in and the tries it took. Each one points at specific lines.

  3. 3

    Answered out loud

    An AI interviewer asks each question. The code stays on screen, read only, with the lines marked. About five minutes, seven at most.

  4. 4

    Rated, with receipts

    Each answer gets a rating and a reason, next to their words, the recording and the lines it was about.

The questions

Every question has a line number.

A problem they solved gets a why and a what-if. One they fixed after a failed submit gets asked what the fix fixed. One they didn’t finish gets asked where it was headed. With fewer than three problems, the same one comes back from another angle. Your hidden tests stay hidden.

This is Riya’s data test: three problems, one of each. Pick one to see what she was asked.

Lines 5–6Passed 6 of 6
1from pyspark.sql import functions as F
2
3
4def solution(orders):
5 paid = orders.filter(F.col("status") == "paid")
6 totals = paid.groupBy("region").agg(F.sum("amount").alias("revenue"))
7 return totals.select("region", "revenue")

Question 1

Look at lines 5 to 6. Why do you keep only the paid orders before you add up the amounts, and what would your code return for a region where every order was refunded?

The call

One question at a time. One follow-up, at most.

Each question is read out while the lines it’s about stay marked in the code beside it. A thin answer gets one follow-up, then the call moves on. It wraps up in about five minutes, never more than seven.

The report

Solved it. Couldn’t say why.

Riya passed the first problem on her first submit, then couldn’t explain the filter that made it pass. She failed the second one twice, fixed it, and explained the fix exactly. Every answer comes with a rating, the reason, her own words and the recording, beside the lines it was about.

Code Walkthrough

1 explained clearly · 1 explained partly · 1 couldn’t explain

Solved, but couldn’t explain lines 5–6.

  • Lines 5–6Couldn’t explain
    Paid Revenue by Region
    Question

    Look at lines 5 to 6. Why do you keep only the paid orders before you add up the amounts, and what would your code return for a region where every order was refunded?

    Answer

    “If a region only has refunded orders it would still show up, with a revenue of zero.” 0:42

    Reason

    Couldn’t say why the paid orders are kept before the amounts are added up. Said a region with only refunds would show a revenue of zero, but this code leaves that region out.

    1from pyspark.sql import functions as F
    2
    3
    4def solution(orders):
    5 paid = orders.filter(F.col("status") == "paid")
    6 totals = paid.groupBy("region").agg(F.sum("amount").alias("revenue"))
    7 return totals.select("region", "revenue")
  • Lines 6–7Explained clearly
    Big Orders by Customer Tier
    Question

    Your second try failed, and then you changed lines 6 to 7. What was going wrong, and why did that change fix it?

    Answer

    “With the inner join, big orders from guest checkouts were dropped, because those buyers have no row in the customer list.” 0:28

    Reason

    Named the exact mistake, guest checkouts dropped by the inner join, and why the left join and the unknown tier fix it.

    5 big = orders.filter(F.col("amount") >= 500)
    − joined = big.join(customers, on="customer_id", how="inner")
    6 joined = big.join(customers, on="customer_id", how="left")
    7 joined = joined.fillna({"tier": "unknown"})
    8 return joined.groupBy("tier").agg(
  • Lines 11–15Explained partly
    Reading Sessions
    Question

    You did not get this one passing. Look at lines 11 to 15. What was your idea for the longest session, and what would you try next?

    Answer

    “For the longest one I just took the user’s first and last event, which is only right when there is one session.” 0:29

    Reason

    Knew where it broke and why. Couldn’t say how to measure each session on its own.

    10 marked = marked.fillna({"new_session": 0})
    11 first = F.min("ts").cast("long")
    12 last = F.max("ts").cast("long")
    13 return marked.groupBy("user_id").agg(
    14 (F.sum("new_session") + 1).alias("sessions"),
    15 ((last - first) / 60).cast("int").alias("longest_minutes"),
    16 )

The same summary lands on the candidate’s card on your board and in the completion email.

Who decides

Evidence, not a verdict.

A walkthrough never moves, holds back or rejects anyone. The coding score and your cutoff work as they always have, and the result goes through the moment the call ends. What the answers are worth is your call.

Set up

One tile in your pipeline.

In the job’s pipeline, add a Code Walkthrough stage and pick a coding test, the same way you add a coding stage. Any coding test works, including the ready-made ones, and the same test can run with or without the call.

Email support@goodfit.so and we’ll switch it on for your account.

Questions

What teams ask us

Candidates

Do they know the call is coming?

Yes. The test’s start screen tells them three short spoken questions follow, about five minutes.

Can they change their code during the call?

No. Their code stays on screen, locked, so they explain exactly what they handed in.

Do they have to finish the test first?

No. Any code they ran or submitted is enough to talk about, finished or not.

Does a candidate below your cutoff still get the call?

Yes. Everyone with code gets it, so every report has both halves.

Your team

Do we write the questions?

No, Goodfit does. Every candidate gets three fresh questions written from the exact lines they handed in, so there’s nothing for your team to set up or keep up to date.

Does the walkthrough change the coding score?

No. The score comes from the tests. The walkthrough sits beside it.