---
title: Coding with AI Assistants: A Beginner's Guide | Large Programs
description: AI can suggest code and explain errors. How learners can use it well and avoid common mistakes.
canonical: https://www.largeprograms.com/coding-with-ai-assistants/
---

[Home](/) / [Start Here](/category/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](/img/hero/art-coding-with-ai-assistants.svg)
*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

- [https://arxiv.org/abs/2510.26103](https://arxiv.org/abs/2510.26103)
- [https://en.wikipedia.org/wiki/GitHub_Copilot](https://en.wikipedia.org/wiki/GitHub_Copilot)
- [https://en.wikipedia.org/wiki/Large_language_model](https://en.wikipedia.org/wiki/Large_language_model)

[Read this page as Markdown (.md)](/coding-with-ai-assistants.md)

## Keep reading

[![](/img/hero/art-ai-glossary-llm-terms-for-adults.svg)](/ai-glossary-llm-terms-for-adults/)

Start Here

### [LLM Glossary for Beginners: 25 Terms Explained](/ai-glossary-llm-terms-for-adults/)

A plain-English glossary of terms such as parameter, token, embedding, inference, RLHF and more.

[![](/img/hero/art-ai-in-everyday-life.svg)](/ai-in-everyday-life/)

Start Here

### [AI in Everyday Life: Ten Places You Already See It](/ai-in-everyday-life/)

Maps, spam filters, photos, translation and more. A tour of everyday tools, many of which use AI or machine learning.

[![](/img/hero/art-ai-in-medicine-and-science.svg)](/ai-in-medicine-and-science/)

Start Here

### [AI in Science and Medicine: Helping, Not Replacing, Experts](/ai-in-medicine-and-science/)

AI helps scientists predict protein shapes, read scans and search data. Why human experts still lead.
