New to Artificial Intelligence? Read the Artificial Intelligence article
Generative AI can write code fast, but fast does not always mean safe. This practical guide shows software teams how to verify, test, secure and govern AI-assisted code across the full development lifecycle. Packed with real-world examples and practical workflows, it offers a clear path to adopting AI without lowering the bar for software quality.
A traveler asks for a quiet hotel in Lisbon. Behind that one request, a model chooses tools, a server enforces approvals in code, and a person decides whether money moves. This book builds that system from the first message to the last booking, and tests it without paying for a single model call.
Learn how modern LLM inference engines work by building one from scratch in Rust. From transformers and tokenization to KV caching, quantization, batching, and GPU optimization, this book combines theory, hands-on code, and performance engineering to help you create fast, production-ready AI systems.
14 chapters, 420 pages, every output from a real recorded run, with runnable example code for every listing. Start free with chapters 0 to 2.
14 chapters, 362 pages, every output from a real recorded run, with runnable example code for every listing. Start free with chapters 0 to 2.
A leader at a company opens Slack one morning. The brief their virtual employee wrote looks normal: same headers, same prose voice, same cadence as every other brief that week. The last line ends mid-sentence. The API returned `stop_reason: "max_tokens"`. The system shipped it anyway. No exception. No log line. No retry. That bug doesn't look like the normal kind. This book is about why, and what to build instead.
Build and evaluate proposal-only coding agents with explicit permissions, controlled verification, and human review (691 manuscript pages).
Move from observing AI agents to operating them through runtime evidence, evaluation, economics, reliability, and governed action.This practitioner-focused book develops an architecture for production AI systems where traces, evaluations, safety signals, cost, business outcomes, and operational authority become part of one evidence model.
Build controlled, observable agent workflows with LangChain and LangGraph. Visual explanations and practical examples take you from model calls to stateful orchestration, security, and production operations.
Rapid-development frameworks across Ruby on Rails, Node.js, PHP, Python, and .NET revolutionized how quickly we can ship software. But what happens when your business domain grows complex? Relying on Active Record and heavy ORM patterns tightly couples your database to your business logic. As your product matures, this coupling creates brittle, difficult-to-maintain codebases that resist change and slow down your team. The solution is the Domain Model Pattern (the foundation of Domain-Driven Design). It isolates business rules from infrastructure, creating a pure, scalable architecture. Historically, however, this pattern required a massive amount of effort and boilerplate, making it too slow for fast-paced development. That changes today. We are at an AI inflection point. Modern AI coding assistants excel at generating boilerplate and wiring infrastructure, effectively eliminating the traditional drawbacks of DDD. AI finally bridges the gap between the rapid speed of framework scaffolding and the architectural purity of a Domain Model. But to harness AI reliably, you cannot simply let it generate code unguided. You need a structured methodology to guide the machine. In this book, you will learn:How to build reliable, maintainable software using a strict, AI-assisted pipeline: Use Cases → Gherkin → Event Storming → Strategic & Tactical DDD.How to create implementation-agnostic class diagrams that serve as universal blueprints, allowing you to generate code in OOP languages (Java, C#, PHP, Python) or Functional languages (Elixir, Clojure, F#).How to future-proof your systems with a timeless methodology that prioritizes the longevity of business logic over the ephemeral nature of web frameworks.How to scale your architecture gracefully from a Majestic Monolith to Microservices without a complete rewrite. The methodology is language agnostics but in this edition all codes samples are in TypeScript. Whether you want to accelerate your development velocity, improve your system's resilience, or simply reclaim your craft by building beautiful, majestic systems, this book provides the blueprint.Discover how to combine the timeless principles of DDD with the power of AI.
Answered sounds like it worked. Twice, it didn't. This book measures exactly where six seconds of silence goes in a real phone call, and does not stop measuring for the next thirty-four chapters.
You leave Claude Code running and come back to something missing. This book is arranged by the accident, not the mechanism: databases dropped, files deleted, git history rewritten, the rewind command taking work with it. Three of the four get the exact hook that blocks the command before it runs, with the recovery if it already happened; no PreToolUse hook sees the rewind command, and the book gives the settings-level lever and names the one place a refusal could still live. Appendix B prints all 195 commands the guards were fired at, refusals and allowances both.
If your project has a goal and steps to reach it, focus-kit, the method this book teaches, gives it a plan: one page per delivery, decided by you and built by a coding agent. What comes out is a documented project where the agent is part of the team: it answers what anyone asks about the project and carries out the next step the team decides.
Once the five essential hooks are in place, the incidents that keep happening are the guards themselves failing, silently. Nine chapters collect the hooks (Git, credentials, token spikes, autonomous operation, multi-agent work), a chapter on hooks that do not fire, eight dated incidents from the author's own unattended operation, and a 50-point audit you can run against your own setup.
A working engineer's guide to building and maintaining production software with autonomous terminal coding agents (382 manuscript pages).