Название: Software Craftsmanship Using AI: Practical guide for using LLMs in writing, reviewing and testing code
Автор: Almantas Karpavičius
Издательство: BPB Publications
Год: 2025
Страниц: 288
Язык: английский
Формат: epub (true)
Размер: 10.1 MB
This book is a workshop to create software using AI. A reader will be taken through a series of requirements and create a practical API from scratch. AI is without a doubt a productivity boost, and our goal is to help you maximize the boost by writing prompts effectively to generate, refactor, test, and review code. The purpose of this book is to take classic principles and put them into the context of AI. Is it enough to know theory, to be able to generate code using AI? Explore how much you can rely on AI (ChatGPT, GitHub Copilot)—and how much you need to know by yourself. We will aim to create a pair-programming-like experience and generate as much code as we can, writing as little code ourselves as possible. Quality is the key—at no point will we let the AI-generated code be worse than perfect. This book is also a modern take on software design fundamentals. To be able to scrutinize AI-generated code and to be able to guide AI effectively to better results, one should understand the theory behind software design. It starts with basics like clean function design and object-oriented principles, then advances to SOLID principles, design patterns, and Onion architecture. Readers will learn essential testing methods, including unit, integration, and acceptance tests using BDD and Specflow. The guide covers API development, focusing on security, validation, error handling, and external system integration.