Large Programs

Home / Start Here

Start Here

Coding with AI Assistants: A Beginner's Guide

AI can suggest code and explain errors. How learners can use it well and avoid common mistakes.

26 November 2026 · 1 min read

Illustration for the article Coding with AI Assistants: A Beginner's Guide
Illustration made for this site.

Language models are trained on lots of code too, so they can write and explain programs.

Good uses

  • Explain an error message in plain language.
  • Show a small example of a new idea.
  • Suggest ways to test your program.

Cautions

  • The code can have bugs or security problems. One 2025 study of AI-attributed code in public GitHub repositories looked at 7,703 files in public GitHub repositories that were marked as made with AI tools (mostly ChatGPT). Of the 7,117 files it could analyse, 861 (12.1%) had at least one security weakness, and the authors say that about 88% did not. Python files had higher rates of weaknesses than JavaScript or TypeScript files. That is a measure of code that people chose to publish, not of every use of AI.
  • You might not learn if you only copy.
  • Never paste passwords or private keys.

Learner tip

Try writing it yourself first, then ask the assistant to review. Run and test everything.

Sources