Skip to content
Try this course

Free course template · Global

Modernising legacy code with AI: Understand it, test it, change it safely

A ready-made course, live deck and three surveys for software engineers. 35 minutes, 6 lessons, 10-question final check. Last reviewed 4 December 2026; not legal advice.

Try the courseClaim the template

Play a game from the course

Modernising legacy code with AI: Understand it, test it, change it safely: try 3 questions

Three questions from this course. Pick an answer, then see why.

Play the game

Game not loading? Open it in a new tab (opens in a new tab)

Three pieces that work together

Learners sign in, so every finish and score is recorded. 4 fields to fill in with your details.

Claim the template

6 lessons, about 35 minutes

Minutes are an estimate.

  • Lesson 1: Old code, new helper · 7 min

    Before you begin · The rounding rule nobody wrote down · Where AI helps

  • Lesson 2: Understand before you change · 6 min

    Ask in layers · Believe it or check it? · The unused procedure

  • Lesson 3: Pin down behaviour first · 6 min

    Characterisation tests · Spot the missing test · Check

  • Lesson 4: Change it in small steps · 6 min

    Plan the route · Each step · One big change

  • Lesson 5: Leave it better documented · 6 min

    What to write down · The handover note · Do or don't?

  • Lesson 6: Final assessment · 4 min

    Final assessment · Course complete

Claim the template

Inside this course

Taken from the course itself.

By the end, learners can

  • Explain why AI is most useful on legacy code for reading and explaining it, and where it is most likely to mislead
  • Build understanding first: summarise, map and question unfamiliar code and check each claim against the running system
  • Add characterisation tests that pin down current behaviour before any change
  • Plan and run small, reversible modernisation steps with AI help, and review each against the tests
  • Record what you learned (decisions, quirks and risks) so the next engineer is not starting cold

Sample questions, with answers

  1. Where did the rounding rule live?

    • Only in the old code's behaviour
    • In the documentation
    • In the AI's summary

    Answer: Only in the old code's behaviour. Nobody had written it down. Only running or reading the old code would have shown it.

    Lesson 2: Understand before you change

  2. What should you do with "this is unused"?

    • Delete it
    • Search every caller and the scheduler, then ask the team
    • Believe it if the assistant sounds sure

    Answer: Search every caller and the scheduler, then ask the team. Check callers, jobs and logs, then ask the people who know the system.

    Lesson 3: Pin down behaviour first

  3. Why write the characterisation test before the rewrite?

    • It proves the code is correct
    • It makes the AI faster
    • It pins current behaviour so you can see what changed

    Answer: It pins current behaviour so you can see what changed. The test shows exactly what moved when you change the code.

    Lesson 4: Change it in small steps

A scenario from "Understand before you change"

Ibrahim's assistant says a stored procedure is unused.

Best response: Search every caller and the scheduler, check the logs and ask the team.

Weaker responses: Delete it because the assistant sounds confident; Leave it and never ask.

Common questions

Yes. Claiming the template and editing it are free.

Yes. The course is self-paced and online, and the live deck lets you add a live session in the room or online.

At onboarding or as continuing professional development, with a yearly refresher (best practice).

Software engineers, architects and tech leads.

Record completion in your own LMS or record system, so you can show who finished the course and when.

Your own details, each highlighted inside the course:
  • Link to your live session deck
  • Link to the self-paced course
  • Your AI use policy is at
Then edit anything else you like: wording, scenarios, your logo.
Visit the help centre (opens in a new tab)