Learning Test-Driven Development: A Polyglot Guide to Writing Uncluttered Code

Siddiqui, Saleem

買這商品的人也買了...

相關主題

商品描述

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 better code--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

商品描述(中文翻譯)

你的程式碼是作為一個開發者技能的證明。無論你使用什麼語言,程式碼都應該是乾淨、優雅且不雜亂的。通過使用測試驅動開發(TDD),你將寫出更好的程式碼 - 程式碼易於理解,保持其優雅性,並能在未來的幾個月甚至幾年內正常運作。這本不可或缺的指南將教你如何在三種不同的語言中使用TDD:Go、JavaScript和Python。

作者Saleem Siddiqui向你展示如何使用單元測試驅動方法來應對領域複雜性。TDD將需求分割成可實現的小特性,使你能夠解決問題,而不受你使用的語言和框架的限制。有了《學習測試驅動開發》這本書在手,你將學會如何將TDD融入到你的日常編碼實踐中。

這本書將幫助你:
- 使用TDD的分而治之方法來控制領域複雜性
- 了解TDD如何跨語言、測試框架和領域概念工作
- 學習TDD如何實現持續整合
- 通過TDD支持重構和重新設計
- 學習如何在JavaScript中編寫簡單有效的單元測試框架
- 使用TDD在Go、JavaScript和Python中編寫乾淨、不雜亂的程式碼