CS 212, AI Programming 1
[TOC]
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:
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:
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.
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.
Write user stories with acceptance criteria. A user story says who wants what, and why. The acceptance criteria say how you’ll know the story is done. For example:
Story: As a student, I want to see which assignments are due this week, so that I can plan my time.
Acceptance criteria:
- Given I have assignments due this week, when I open the app, then I see them listed in order of due date.
- Given I have no assignments due this week, when I open the app, then I see “Nothing due this week.”
- Given an assignment is past due, when I open the app, then it is marked as late.
The developer plans the high-level design: the major components, how they connect (their interfaces), and how data flows between them.
AGENTS.md, CLAUDE.md, or .github/copilot-instructions.md. Put your coding standards, project layout, and design rules there (e.g., “Always use snake_case for variables,” or “All database access goes through the storage module”).Let the AI write the module-level code, but steer it and check its work.
This is the final check that the software does what the specification says, and it’s where your own judgment matters most.
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:
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.
Pair Programming—Extreme Programming Alliance (XPA)
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.
The Scrum Guide—Ken Schwaber and Jeff Sutherland.
What is Acceptance Testing?—Agile Alliance.
Architectural Decision Records (ADRs)—ADR GitHub organization.
AGENTS.md—An open format for giving instructions to coding agents.
Slopsquatting—Wikipedia
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).
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.