Книги и журналы » Компьютерная литература » Программирование (книги)
Learning Test-Driven DevelopmentГод издания: 2022
Автор: Siddiqui S.
Издательство: O’Reilly
ISBN: 978-1-098-10647-8
Язык: Английский
Формат: PDF
Качество: Издательский макет или текст (eBook)
Количество страниц: 280
Описание: Your code is a testament to your skills as a developer. No matter what language you use, code should be clean, elegant, and uncluttered. By using test-driven development (TDD), you'll write code that's easy to understand, retains its elegance, and works for months, even years, to come. With this indispensable guide, you'll learn how to use TDD with three different languages: Go, javascript, and Python.
Author Saleem Siddiqui shows you how to tackle domain complexity using a unit test-driven approach. TDD partitions requirements into small, implementable features, enabling you to solve problems irrespective of the languages and frameworks you use. With Learning Test-Driven Development at your side, you'll learn how to incorporate TDD into your regular coding practice.
This book helps you:
- Use TDD's divide-and-conquer approach to tame domain complexity
- Understand how TDD works across languages, testing frameworks, and domain concepts
- Learn how TDD enables continuous integration
- Support refactoring and redesign with TDD
- Learn how to write a simple and effective unit test harness in javascript
- Set up a continuous integration environment with the unit tests produced during TDD
- Write clean, uncluttered code using TDD in Go, javascript, and Python
[spoiler="Примеры страниц (скриншоты)"]

[/spoiler]
[spoiler="Оглавление"]
Foreword xi
Preface xiii
Chapter 0: Introduction and Setup 1
Part I. Getting Started
1. The Money Problem 11
2. Multicurrency Money 29
3. Portfolio 43
Part II. Modularization
4. Separation of Concerns 55
5. Packages and Modules in Go 63
6. Modules in JavaScript 73
7. Modules in Python 89
Part III. Features and Redesign
8. Evaluating a Portfolio 95
9. Currencies, Currencies, Everywhere 105
10. Error Handling 115
11. Banking on Redesign 129
Part IV. Finishing Up
12. Test Order 155
13. Continuous Integration 167
14. Retrospective 193
A. Development Environment Setup 217
B. A Brief History of the Three Languages 227
C. Acknowledgments 235
Index 237
[/spoiler]