Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

YouTube

Refactor an Existing Codebase using Prompt Driven Development

Visual Studio Code via YouTube

Overview

Coursera Flash Sale
40% Off Coursera Plus for 3 Months!
Grab it
Learn how to refactor an existing e-commerce codebase using GitHub Copilot's prompt-driven development approach in this 24-minute tutorial. Walk through a FastAPI and Cosmos DB inventory project to identify code smells and discover how to craft effective Copilot instructions that guide systematic refactoring. Master the process of building targeted prompts, executing them using Agent Mode, and reviewing generated code changes step by step. Explore practical techniques for AI-assisted code improvement while working with a real-world project structure, focusing on the product_crud_batch.py file as a case study. Gain insights into custom instruction creation, prompt engineering best practices, and testing methodologies to ensure refactored code maintains functionality. Conclude with essential best practices that make AI-assisted refactoring faster, cleaner, and more reliable for future development projects.

Syllabus

00:00 Intro
00:36 Getting Started
02:25 Choosing our directory - product_crud_batch.py
03:50 Custom Instructions
05:25 Creating our prompt
09:58 Running our prompt with agent mode
19:11 Testing Changes
23:39 In Summary
24:14 Wrap

Taught by

Visual Studio Code

Reviews

Start your review of Refactor an Existing Codebase using Prompt Driven Development

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.