Question Desk
All guidesEveryday work

Can AI write code?

AI coding assistants can suggest code, explain existing functions and draft changes. Start with a small change whose behavior you can test. Read the proposed edit and run it with typical and unusual inputs before you merge it.

Try it

  1. Describe the expected behavior.
  2. Provide a small input and the exact expected output.
  3. Run the same test yourself after the edit.
Worked example

Ask for a function that formats a list of names. Test an empty list, one name and a name with an apostrophe.

Check your result

Check whether changing one feature altered an existing caller. A passing happy-path example is only one data point.

Sources

Guide published November 29, 2026.

Related guides