Java By Comparison: Become a Java Craftsman in 80 Examples
Simon Harrer, Jörg Lenhard, Linus Dietz
- 出版商: Pragmatic Bookshelf
- 出版日期: 2018-05-01
- 定價: $1,460
- 售價: 9.5 折 $1,387
- 語言: 英文
- 頁數: 208
- 裝訂: Paperback
- ISBN: 1680502875
- ISBN-13: 9781680502879
-
相關分類:
Java 程式語言
立即出貨 (庫存=1)
買這商品的人也買了...
-
$1,650$1,568 -
$1,390$1,321 -
$480$408 -
$773$734 -
$1,200$1,140 -
$1,850$1,758 -
$1,881Advances in Financial Machine Learning (Hardcover)
-
$650$553 -
$480$379 -
$540$427 -
$880$695 -
$265透視 APT — 賽博空間的高級威脅
-
$454增強型分析:AI驅動的數據分析、業務決策與案例實踐
-
$2,565BPF Performance Tools : Linux System and Application Observability (Paperback)
-
$500$390 -
$709遷移學習 -- TRANSFER LEARNING (楊強教授新作)
-
$1,050$998 -
$594$564 -
$599$509 -
$653Python 漫游數學王國 — 高等數學、線性代數、數理統計及運籌學
-
$1,200$948 -
$774$735 -
$534$507 -
$509複盤
-
$680$537
相關主題
商品描述
Write code that's clean, concise, and to the point: code that others will read with pleasure and reuse. Comparing your code to that of expert programmers is a great way to improve your coding skills. Get hands-on advice to level up your coding style through small and understandable examples that compare flawed code to an improved solution. Discover handy tips and tricks, as well as common bugs an experienced Java programmer needs to know. Make your way from a Java novice to a master craftsman.
This book is a useful companion for anyone learning to write clean Java code. The authors introduce you to the fundamentals of becoming a software craftsman, by comparing pieces of problematic code with an improved version, to help you to develop a sense for clean code. This unique before-and-after approach teaches you to create clean Java code.
Learn to keep your booleans in check, dodge formatting bugs, get rid of magic numbers, and use the right style of iteration. Write informative comments when needed, but avoid them when they are not. Improve the understandability of your code for others by following conventions and naming your objects accurately. Make your programs more robust with intelligent exception handling and learn to assert that everything works as expected using JUnit5 as your testing framework. Impress your peers with an elegant functional programming style and clear-cut object-oriented class design.
Writing excellent code isn't just about implementing the functionality. It's about the small important details that make your code more readable, maintainable, flexible, robust, and faster. Java by Comparison teaches you to spot these details and trains you to become a better programmer.
What You Need:
You need a Java 8 compiler, a text editor, and a fresh mind.That's it.
商品描述(中文翻譯)
寫出整潔、簡潔且直截了當的程式碼,讓他人閱讀時感到愉悅並可重複使用。將你的程式碼與專業程式設計師的程式碼進行比較是提升編碼技巧的好方法。透過小而易懂的範例,比較有缺陷的程式碼與改進的解決方案,獲得實用的建議,提升你的編碼風格。發現實用的技巧和訣竅,以及經驗豐富的Java程式設計師需要了解的常見錯誤。從Java初學者進階成為大師級的工匠。
這本書是任何學習撰寫整潔Java程式碼的人的有用伴侶。作者通過將有問題的程式碼片段與改進版本進行比較,引導你掌握成為軟體工匠的基礎,幫助你培養對整潔程式碼的感覺。這種獨特的前後對比方法教你創建整潔的Java程式碼。
學會保持布林值的正確性,避免格式錯誤,消除魔術數字,並使用正確的迭代方式。在需要時撰寫有信息量的註解,但在不需要時避免使用。通過遵循慣例並準確命名對象,提高他人對你的程式碼的理解能力。通過智能的例外處理使你的程式更加健壯,並學會使用JUnit5作為測試框架來確保一切按預期運作。以優雅的函數式編程風格和清晰的面向對象類設計給同行留下深刻印象。
優秀的程式碼不僅僅是實現功能,還包括使你的程式碼更易讀、易維護、靈活、健壯和更快的細節。《Java by Comparison》教你發現這些細節,並訓練你成為一名更好的程式設計師。
你需要一個Java 8編譯器、一個文本編輯器和一顆清新的頭腦。就這些。