AI-Assisted Coding · Module 1Lesson 6

Study explanation · Lesson 06 · 11 min

The tools: ChatGPT, Claude and transferable habits

The tool changes; the habits don’t. The module compares ChatGPT and Claude in the browser, builds the stateless mental model and a reusable context block, and gives a practical rule for deeper reasoning: judgment means think, recall means skip.

Listen to this lesson

Hear the lesson read aloud, with each sentence highlighted as you go.

Narrated by an AI voice.

The tool changes; the habits don’t

The tool section focuses mainly on ChatGPT and Claude. The same habits transfer to Gemini, Copilot and other assistants, but Module 1 uses browser-based tools so the workflow stays visible. Prompt anatomy, prompt patterns, the stateless model and the interaction loop work across capable assistants.

Key ideaThe tool changes; the habits do not.

Why compare two tools?

Using more than one tool helps you notice assumptions and blind spots, and it prevents tool dependency. Your goal is not to memorize one interface; it is to build transferable habits.

Strengths emphasized in the lecture · Lecture notes p. 12
ToolStrengths emphasized in the lecture
ChatGPTGeneral-purpose coding, conversational follow-ups, exploratory explanations, and quick iteration.
ClaudeConstraint following, long context, structured outputs, and course scaffolding. Claude is the reference tool for the scaffold demo.

Read with careThese are the strengths the lecture emphasized at the time the notes were written, not a claim about either tool today. Tools and their interfaces change; the habits are what you keep.

The stateless mental model

Every new conversation starts from zero unless you provide context or work inside a persistent project or workspace. The assistant doesn’t reliably know your project, decisions, constraints or previous corrections unless you restate them. So you keep a short context block and paste it first. The library’s P0 is a fuller version that also lists the allowed statuses and priorities and the excluded features.

Reusable context block from the notesI am building a Task Tracker REST API using Python and FastAPI. The app supports create, view, update, and delete tasks. Each task has id, title, description, status, priority, and assignee. No authentication and no external database yet. I am using the loop: ask, inspect, run, test, refine.

Interface elements worth noticing

A few parts of a chat interface matter for development work.

Interface elements developers should notice · Lecture notes p. 13
ElementWhy it matters
Message bar / message areaUse multi-line prompts. Structure the prompt instead of writing one dense paragraph.
Model selectorChoose a strong coding-capable model for development tasks.
New chat / new conversationAvoid context contamination between unrelated tasks.
Code copy buttonCopy complete code blocks without formatting mistakes.
Custom Instructions / ProjectsUseful for persistent preferences or project context, but not a replacement for task-specific context.

When to use deeper reasoning

Reasoning modes cost time. The notes give a simple split between tasks that need judgment and tasks that only need recall.

Reasoning modes: when to use deeper thinking · Lecture notes p. 13
Use thinking/reasoning when...Skip it when...
Evaluating architecture trade-offs.Generating simple boilerplate.
Reasoning through status transition rules.Creating a basic .gitignore.
Debugging unclear errors.Looking up simple syntax or commands.
Designing validation chains or business logic.Writing straightforward setup text.

Key ideaPractical rule: judgment = think; recall = skip.

Exercise: First Contact

Submit the same prompt to two tools and compare their answers. Which tool was more structured? Which answer was more actionable? What did each assume, such as a database, authentication, Docker or a frontend framework? The library’s P1 adds constraints and asks for a table with an “Assumption to verify” column, which makes the comparison easier.

First Contact prompt from the notesI am building a simple Task Tracker REST API in Python and FastAPI. The API supports CRUD operations for tasks. Each task has id, title, description, status, priority, and assignee. List the five most important technical decisions I should make before writing any code. For each decision, explain why it matters and suggest a default for a small learning project.

Key takeaways

  • Habits transfer across assistants; interfaces don’t matter as much as they seem.
  • Every new chat starts from zero: paste your context block first.
  • Custom Instructions and Projects help, but never replace task-specific context.
  • Judgment means think; recall means skip.

Built from the Module 1 lecture notes, prompt library and additional readings; the videos they accompany were not supplied.

Your study checkpoint

Ready to continue?

Mark the lesson complete once you have read it and tried its idea on something real.

Next · Lesson 7