Refactor an Existing Codebase using Prompt Driven Development
Visual Studio Code via YouTube
-
34
-
- Write review
Earn a Michigan Engineering AI Certificate — Stay Ahead of the AI Revolution
Google AI Professional Certificate - Learn AI Skills That Get You Hired
Overview
Google, IBM & Meta Certificates — All 10,000+ Courses at 40% Off
One annual plan covers every course and certificate on Coursera. 40% off for a limited time.
Get Full Access
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