Locked · Module 4, lesson 4 of 8

The edit tool: exact replacements, not whole-file rewrites

Write `edit_file` that replaces one exact, unique piece of text, refuses an ambiguous or missing match, and returns the diff, and say why rewriting whole files loses code.

This lesson comes with the course. Enrolment is not open yet, and no payment is taken now.

Tell me when the course opens

The 7 lessons of module 1 are free: see the lessons of the course.

The search tool: finding code by text and by nameNext: The run tool: commands, exit codes, time and output limits