相關主題
商品描述
Dodge the common mistakes that even senior developers make, take full advantage of static analysis tools, and deliver robust and error-free Java code.
Inside 100 Java Mistakes and How To Avoid Them you will learn how to:
- Write better Java programs
- Recognize common mistakes during programming
- Create fewer bugs and save time for debugging and testing
- Get help from static analyzers during programming
- Configure static analysis tools to reduce amount of false reports
- Extend static analysis tools with custom plugins
Whenever you make a mistake writing Java, it's almost guaranteed that someone else has made it before! In 100 Java Mistakes and How To Avoid Them you'll learn about the common and the not-so-common antipatterns, errors, and tricky bits that trip up almost every Java developer. Discover the bugs that are hiding in your Java code, and explore useful and effective ways to dodge them--from unit tests and defensive coding to static analysis tools like IntelliJ IDEA, SonarLint, and Error Prone.
Purchase of the print book includes a free eBook in PDF, Kindle, and ePub formats from Manning Publications.
About the technology
Minor bugs you might not notice when writing code can quickly spin out of control in production, costing you time and money to fix. The solution is clear: spot the mistakes before you make them! This one-of-a-kind guide makes it just that easy. It shines a spotlight on the errors most often made by Java developers, so you can consistently deliver exceptional Java code.
About the book
100 Java Mistakes and How To Avoid Them shows you how to improve your Java code by identifying and dodging common programming problems. Inside, you'll find one hundred errors, from missteps that trip up beginners to mistakes even Java experts don't know they're making. Each mistake is accompanied by concrete troubleshooting advice, as well as ways of using modern static analysis tools like IntelliJ IDEA and SonarLint to identify and fix the problem. You'll quickly see why static analysis can be so helpful for writing your code, and even learn how to write your own useful plugins!
About the reader
For Java developers of all skill levels.
About the author
Tagir Valeev is a technical lead in JetBrains GmbH, where he works in the Java team and gives Java language support in IntelliJ IDEA. Tagir designed and developed many code inspections for IntelliJ IDEA built-in static analyzer. He is a Java Champion, and holds a PhD in computer science.
商品描述(中文翻譯)
避免即使是資深開發人員也常犯的常見錯誤,充分利用靜態分析工具,並提供堅固且無錯誤的Java程式碼。
在《100個Java錯誤及其避免方法》中,您將學習如何:
- 撰寫更好的Java程式
- 在程式設計過程中辨識常見錯誤
- 減少錯誤並節省調試和測試時間
- 在程式設計過程中使用靜態分析工具獲得幫助
- 配置靜態分析工具以減少虛假報告的數量
- 使用自訂插件擴展靜態分析工具
每當您在撰寫Java程式時犯錯,幾乎可以確定有其他人也曾經犯過!在《100個Java錯誤及其避免方法》中,您將了解到幾乎每個Java開發人員都會遇到的常見和不太常見的反模式、錯誤和棘手之處。發現隱藏在您的Java程式碼中的錯誤,並探索避免這些錯誤的有用和有效方法,從單元測試和防禦性編碼到像IntelliJ IDEA、SonarLint和Error Prone這樣的靜態分析工具。
購買印刷版書籍將包含Manning Publications提供的PDF、Kindle和ePub格式的免費電子書。
關於技術:
在編寫程式碼時,您可能不會注意到的小錯誤可能會在生產環境中迅速失控,耗費您的時間和金錢來修復。解決方案很明確:在犯錯之前發現錯誤!這本獨一無二的指南使這變得非常容易。它聚焦於Java開發人員最常犯的錯誤,讓您能夠始終提供優秀的Java程式碼。
關於本書:
《100個Java錯誤及其避免方法》向您展示如何通過識別和避免常見的程式設計問題來改進您的Java程式碼。在書中,您將找到一百個錯誤,從讓初學者犯錯的錯誤到連Java專家都不知道自己犯了的錯誤。每個錯誤都附有具體的疑難排解建議,以及使用現代靜態分析工具如IntelliJ IDEA和SonarLint識別和修復問題的方法。您將迅速了解為什麼靜態分析對於撰寫程式碼如此有幫助,甚至學會如何撰寫自己有用的插件!
關於讀者:
適合所有技能水平的Java開發人員。
關於作者:
Tagir Valeev是JetBrains GmbH的技術主管,他在Java團隊中工作並在IntelliJ IDEA中提供Java語言支援。Tagir設計並開發了許多IntelliJ IDEA內建靜態分析器的程式碼檢查。他是Java Champion,並擁有計算機科學博士學位。