Coding with AI
An introduction to AI-assisted software development, modern development workflows, and the mindset needed to use AI responsibly throughout the course.
#ai #software development #prompt engineering #beginners
This read-ahead lesson introduces the mindset and workflow that will be used
throughout the course. Students learn that AI is a powerful development
assistant, but the developer remains responsible for every decision and every
line of code.
Learning Objectives
After completing this lesson, students should be able to:
- Explain what modern AI-assisted software development is.
- Describe the software development process before coding begins.
- Identify the three major parts of a software application.
- Understand how AI should be used during development.
- Follow the Core Loop for AI-assisted programming.
- Maintain a reflection log documenting AI usage throughout the semester.
oaicite:1
Presentation
Google Slides
Day 1 – Coding with AI (Read Ahead)
Lesson Outline
Course Overview
Students are introduced to the main goal of the course.
Rather than focusing solely on writing code manually, students learn how to
build software effectively with the assistance of modern AI tools while staying
in control of the development process.
Software Development is Problem Solving
Programming does not begin with typing code.
Students learn that the developer's primary responsibility is to:
- Understand the problem.
- Understand the user.
- Break large problems into smaller pieces.
- Design the solution before implementation.
AI assists with writing code, but humans solve the problem.
Where Every Project Begins
Before opening a code editor or asking AI to generate code, students answer three questions:
- Who is the application for?
- What problem does it solve?
- What is the smallest useful version that can be built?
These questions form the foundation of every successful software project.
The Software Development Lifecycle
Students are introduced to the seven stages of software development:
- Idea
- Requirements
- Design
- Build
- Test
- Ship
- Maintain
The lesson emphasizes that most software work happens before writing code.
Anatomy of an Application
Every application consists of three major components:
- Frontend – what users see.
- Backend – the application logic.
- Data – persistent information stored in a database.
Students use these concepts throughout the semester when discussing application architecture.
Understanding AI Coding Assistants
Students learn how AI actually works.
Key ideas include:
- AI predicts likely code rather than understanding the project.
- AI can produce incorrect answers confidently.
- AI only knows the information provided in the prompt.
These limitations explain why developers must review AI-generated work carefully.
The Core Loop
The course follows a consistent AI-assisted workflow:
- Specify
- Plan
- Review
- Build
- Verify
- Iterate
Students practice reviewing AI output before accepting it, ensuring they remain responsible for every decision.
Good AI Habits
Students compare productive AI usage with poor AI usage.
Good habits include:
- Asking for plans before code.
- Requesting explanations.
- Reviewing generated code.
- Using AI as a tutor.
Poor habits include:
- Copying code without understanding it.
- Letting AI make design decisions.
- Asking AI to build an entire application in one prompt.
- Shipping code without verification.
oaicite:9
The One Rule
Throughout the semester, one rule applies:
You may only submit code you can explain.
Students are encouraged to ask AI for explanations until they fully understand how the code works.
Course Deliverables
Students work in groups to produce:
- A small but functional application.
- A reflection log documenting how AI was used during development.
The reflection log carries significant weight because the course emphasizes understanding and decision-making rather than simply producing code.
Development Tools
Students are introduced to the tools used throughout the course:
- Claude or ChatGPT
- Cursor or Windsurf
- GitHub Copilot
- GitHub
Each tool has a specific role in the AI-assisted development workflow.
Week 1 Tasks
Before the next class meeting, students should:
- Set up all required development tools.
- Create their first reflection log entry.
- Write a short reflection on what "coding with AI" means to them.
These activities prepare students for the hands-on lessons that follow.
Recommended Next Lesson
Continue with:
➡️ Coding with AI: Prompts & Reading JavaScript
This lesson introduces prompt engineering and teaches students how to read the JavaScript generated by AI before they begin building applications.
Key Takeaways
- The developer defines the problem.
- The developer reviews the plan.
- The developer verifies the implementation.
- The developer remains responsible for the final product.
You are the director. AI is the typist.
oaicite:14
Lesson Plans
Session-by-session plans with objectives, timing and materials.
Coding with AI: Prompts & Reading JavaScript
Learn how to write effective AI prompts and read JavaScript code confidently. This lesson teaches students how to direct AI instead of blindly copying its output.