Skip to Content
Beyond Vibe Coding
book

Beyond Vibe Coding

by Addy Osmani
August 2025
Intermediate to advanced
254 pages
7h 51m
English
O'Reilly Media, Inc.
Book available
Content preview from Beyond Vibe Coding

Chapter 8. Security, Maintainability, and Reliability

This chapter confronts a critical aspect of vibe coding and AI-assisted engineering—ensuring that the code you produce with AI assistance is secure, reliable, and maintainable. Speed and productivity mean little if the resulting software is riddled with vulnerabilities or prone to crashing.

First, I’ll examine common security pitfalls that arise in AI-generated code, from injection vulnerabilities to secrets leakage. You’ll learn techniques for auditing and reviewing AI-written code for such issues, effectively acting as the security safety net for your AI pair programmer.

Next, I’ll discuss building effective testing and QA frameworks around AI-generated code to catch bugs and reliability issues early. Performance considerations will also be covered. AI might write correct code, but it’s not always the most efficient code, so I’ll outline how to identify and optimize performance bottlenecks. I’ll also explore strategies to ensure maintainability, such as enforcing consistent styles or refactoring AI code, since AI suggestions can sometimes be inconsistent or overly verbose.

I’ll show you how to adapt your code-review practices to an AI-assisted workflow, highlighting what human reviewers should focus on when reviewing code that was partially or wholly machine-generated. Finally, I’ll round up best practices for deploying AI-assisted projects with confidence, from continuous integration pipelines to monitoring in production. ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Designing Data-Intensive Applications

Designing Data-Intensive Applications

Martin Kleppmann
AI Engineering

AI Engineering

Chip Huyen
AI Engineering

AI Engineering

Chip Huyen
AI Engineering

AI Engineering

Chip Huyen

Publisher Resources

ISBN: 9798341634749Errata Page