From the course: Accelerate DevOps and Software Development with AI: Modern Tools and Workflows for Enhanced Software Delivery
Unlock this course with a free trial
Join today to access over 24,900 courses taught by industry experts.
Coding project: Plan and test with AI tools
From the course: Accelerate DevOps and Software Development with AI: Modern Tools and Workflows for Enhanced Software Delivery
Coding project: Plan and test with AI tools
- In this activity, we'll build a tiny business logic layer in pure Python. Think of it as the logic behind a simple books API. We'll implement four operations, create, get, list, delete. Along the way, I'll show you exactly how to use AI inside your IDE to plan, review, and test the code. Word of caution, though. AI tools aren't deterministic. That means that your output may look a little different from mine, even with the same prompt. For this example, I'll be using Cursor, but you're free to use the tool of your choice. I'll assume that you already have the necessary tools pre-installed. We'll start by creating a new file titled BookService.py. which I've already created here. Before I code, I'll ask AI for a quick checklist of validation and predictable editors. I have a prompt here which says, "I'm building a tiny in-memory BookService in pure Python with create, get, list, delete. Give me six concise…
Contents
-
-
-
-
(Locked)
What powers GitHub Copilot and ChatGPT?4m 20s
-
(Locked)
Prompt engineering for developers2m 38s
-
(Locked)
Role-based prompting for better code reviews2m 31s
-
Iterative prompting to guide AI to better code3m 35s
-
(Locked)
Coding project: Plan and test with AI tools1m 59s
-
(Locked)
Coding project: Speed up Python coding with smart prompts2m 26s
-
(Locked)
Coding project: Create AI-assisted test cases in Python2m 31s
-
(Locked)
Coding project: AI-powered docstrings for developers2m 18s
-
(Locked)
Coding project: Review Python code with AI1m 55s
-
(Locked)
Coding project: Navigating code with AI59s
-
(Locked)
Coding project: Refactor Python code with AI4m 6s
-
(Locked)
Case studies: AI wins and fails4m 22s
-
(Locked)
-
-
-