Skip to lesson
  1. Learn
  2. See
  3. Try
  4. Make

Compare two code answers fairly

What this lesson is about

Pick the better answer by running both against the same task, not by which one looks tidier.

Two people sent solutions for the same task. One is tidy, one is eight messy lines. Where do you start?

Why this matters

Judging two code answers is paid work, and the usual mistake is to rank the writing instead of the result. Tidy code that returns the wrong total is worse than untidy code that returns the right one. The run settles it; reading only starts the argument.

Lesson 7 of 10 on Coding for evaluation worknextSpot unsafe code in an answerPart 3 ends in a work sample you can send

Read the primary or official source: GitHub Docs · Reviewing proposed changes