Solved

Where to start with a 70-line repetitive script?

BellaRossiOP

Feels overwhelming.

3

Comments 5

Join the discussion

Already have an account? Log in

  1. NoahLoops Solutionreplies: 2

    Run it first and save the output — that's your safety net. Then extract one function at a time (parse_feed first), run again and compare. Never change behaviour and structure at the same time.

    6
    1. BellaRossiOPreplies: 1

      Save the output first. Brilliant, so obvious in hindsight.

      0
      1. EmmaCodes

        And stage 2's asserts lock in the behaviour so the fourth engine can be added safely.

        3
    2. OliviaPy

      Rename t, m, s to real names while you're at it — "Names that explain" pays off here.

      1
      1. HenryWrites

        This is the most "real job" challenge on the site. Every company has this script somewhere 😄

        6