Learning Java: A Test-Driven Approach
Crotts, Joshua
- 出版商: Springer
- 出版日期: 2024-08-25
- 售價: $2,750
- 貴賓價: 9.5 折 $2,613
- 語言: 英文
- 頁數: 473
- 裝訂: Quality Paper - also called trade paper
- ISBN: 3031666372
- ISBN-13: 9783031666377
-
相關分類:
Java 程式語言、TDD 測試導向開發
海外代購書籍(需單獨結帳)
相關主題
商品描述
This introductory textbook on Java programming is different from others by its emphasis on test-driven development. Writing tests before designing the implementation is incredibly important for debugging purposes and understanding the desired outcome. While testing is often an afterthought in other Java textbooks (being placed at the very end or not at all, which is in some ways cruel to withhold such capabilities from the student), this text takes a different, perhaps "functional" approach to learning Java: it introduces testing and methods from the start, followed by conditionals, recursion, and loops (on purpose in this very order). It then dives deep into data structures and the Java Collections API, including streams and generics. After this, it pivots to object-oriented programming, exceptions and I/O, searching and sorting, algorithm analysis, and eventually advanced Java/programming topics.
This ordering of topics is well adjusted to prepare students to subsequent upper-level courses in data structure or algorithm design and implementation. The approach is illuminated by numerous code snippets and the students' understanding is consolidated by about 250 exercises covering all topics covered in the book. With this book, readers will not only learn how to program Java, but also acquire a necessary precondition for successfully writing and testing commercial software.
商品描述(中文翻譯)
這本關於 Java 程式設計的入門教科書與其他書籍不同,因為它強調測試驅動開發。在設計實作之前撰寫測試對於除錯和理解期望結果是非常重要的。雖然在其他 Java 教科書中,測試通常是事後才提及(通常放在最後一章,或根本不提,這在某種程度上對學生來說是殘酷的),本書則採取了一種不同的、或許可以稱之為「功能性」的學習 Java 方法:從一開始就介紹測試和方法,接著是條件語句、遞迴和迴圈(故意按照這個順序)。然後深入探討資料結構和 Java Collections API,包括流和泛型。之後轉向物件導向程式設計、例外處理和 I/O、搜尋和排序、演算法分析,最終進入進階的 Java/程式設計主題。
這些主題的排序經過精心調整,以幫助學生為後續的高階資料結構或演算法設計與實作課程做好準備。這種方法透過大量的程式碼片段來闡明,並且透過約 250 道涵蓋書中所有主題的練習題來鞏固學生的理解。透過這本書,讀者不僅能學會如何編寫 Java 程式,還能獲得成功撰寫和測試商業軟體所需的必要前提。
作者簡介
Joshua Crotts is a computer science Ph.D. student at Indiana University with a strong interest in computer science pedagogy, as well as programming languages and compilers. He has published papers at conferences like SIGCSE, CMNA, ICEEL about formal logic education, automatic detection of rhetorical devices (e.g., antithesis), and inductive logic programming as a means of argument mining in science-policy articles. His current research work aims to improve the transition of first-semester students to the later advanced topics and courses.
作者簡介(中文翻譯)
Joshua Crotts 是印第安納大學的計算機科學博士生,對計算機科學教學法、程式語言和編譯器有濃厚的興趣。他在 SIGCSE、CMNA、ICEEL 等會議上發表了有關形式邏輯教育、自動檢測修辭手法(例如,對比法)以及歸納邏輯程式設計作為科學政策文章中的論證挖掘手段的論文。他目前的研究工作旨在改善第一學期學生向後續進階主題和課程的過渡。