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

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