CS 212, AI Programming 1

AI-Assisted Coding

Contents

[TOC]

What is AI-Assisted Coding

AI-assisted coding has the potential to significantly boost developer productivity by using AI as a pair programmer working directly in the development environment (e.g., CLI or IDE) to write code based on natural language prompts from the developer. The underlying Large Language Models (LLMs) then leverage their training on vast codebases to predict and generate entire functions, repetitive boilerplate code, or suggest code completions, to handle routine, time-consuming tasks.

This assistance allows developers to accelerate debugging, quickly translate code between languages, and focus their time and effort on higher-value activities such as:

Maybe Don’t Call It Vibe Coding

Vibe coding is a term that was originally used by Andrej Karpathy in a post on X to describe his experience writing code using AI. The term caught on and became popular but then quickly fell into disfavor because it implies a casual, non-rigorous approach that prioritizes quick code generation based on a “vibe” rather than well thought out design and careful testing.

Critics argue it encourages thoughtless production of “AI slop”, leading to:

How to Code with AI without Making a Mess

AI coding agents can now write whole modules, not just suggest the next line. That changes the developer’s job. You spend less time typing code and more time on the things the AI can’t decide for you: what the software should do, how it should be organized, and whether it actually works.

A good way to picture this is a building project. The developer is the architect and the inspector, and the AI is the construction crew. The architect draws the plans and the crew builds. The inspector checks the work at key stages (the foundation, the framing, the wiring before the walls are closed up), when problems are still easy to see and fix. At the end, the owner does a final walkthrough before moving in.

You won’t read every line the AI writes, but you are still responsible for everything that ships. Here’s how you meet that responsibility in each of four stages, and how you manage the whole project.

1. Requirements: Write a Specification You Can Test

The developer gathers requirements from the people who will use the software and writes them down. AI can help you find gaps and questions you missed, but deciding what the software should do is your job.

2. Architecture: Design It Yourself, Then Refine It with AI

The developer plans the high-level design: the major components, how they connect (their interfaces), and how data flows between them.

3. Module Coding: Guide the AI and Inspect at Key Points

Let the AI write the module-level code, but steer it and check its work.

4. Verification and Acceptance Testing

This is the final check that the software does what the specification says, and it’s where your own judgment matters most.

Managing the Project: Agile Development with AI

Most software teams use an agile process such as Scrum, where software is built in short cycles called sprints (usually one to four weeks). When you work with AI, you are the one who sets up and runs this process as part of your development plan:

AI changes the pace of this cycle. When code is fast to write, the slow part becomes getting feedback and making decisions. That has two effects:

Why You Still Need to Learn to Code

If the AI writes most of the code, why learn to program? Because every stage above depends on it. You can’t judge an architecture, spot-check a module, understand a failing test, or take over when the AI gets stuck going in circles unless you can read and understand code. Knowing how to program is what makes you the architect and the inspector, rather than a bystander.

Working this way is the opposite of “vibe coding.” The AI does most of the building, and you are the engineer who decides what gets built, checks that it’s built right, and answers for the result.

Reference

Pair Programming—Extreme Programming Alliance (XPA)

Vibe Coding

Vibe Coding—Wikipedia

Andrej Karpathy’s “vibe coding” post—X

Vibe Coding: The Shadow IT Problem No One Saw Coming—Steve Fenton, The New Stack, 2025.

Agile Development and Specifications

The Scrum Guide—Ken Schwaber and Jeff Sutherland.

What is Acceptance Testing?—Agile Alliance.

Architectural Decision Records (ADRs)—ADR GitHub organization.

AI Coding Agents

AGENTS.md—An open format for giving instructions to coding agents.

Slopsquatting—Wikipedia

GitHub Copilot

GitHub Copilot Tutorials—GitHub.

GitHub Copilot for VS Code Cheat Sheet—GitHub.

GitHub for Education—Free Enterprise level account that includes GitHub Copilot.

Parts of this document were drafted using Gemini Flash 2.5 (2025) and revised using Claude Opus 5.5 (2026).


Creative Commons License AI Programming 1 Course Materials by Brian Bird, written in 2025, revised in , are licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.