Java By Comparison: Become a Java Craftsman in 80 Examples
暫譯: 透過比較學習Java:80個範例成為Java工匠

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)

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

商品描述

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 編譯器、一個文本編輯器和一顆清新的頭腦。就這樣。

最後瀏覽商品 (20)