Название: 100 Java Mistakes and How to Avoid Them (Final Release) Автор: Tagir Valeev Издательство: Manning Publications Год: 2024 Страниц: 353 Язык: английский Формат: pdf (true) Размер: 12.1 MB
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.
Mistakes always cause struggles. The program does not behave as expected; it fails with exceptions; users complain; and you spend hours reproducing, analyzing, and fixing the problem. Even a very small mistake, like a typo, may require a lot of effort to find. Was it possible to avoid this mistake in the first place? Can a similar problem occur in the future? What can my team do to prevent us from running into this again?
I’ve found there’s no panacea against mistakes. Sometimes, static analysis can help you; sometimes it’s better to rely on testing or assertions; sometimes, you should improve your code style, generate code automatically, or use library methods instead of coding something manually. Still, many mistakes have a repetitive nature; they can be categorized, and there are common approaches to avoid them. If you know about possible pitfalls in advance, you’ll be prepared to avoid them. So I decided to write a book to summarize my experience and list the most common mistakes that can appear in Java programs, in the hopes that, after reading it, other developers will be prepared without needing to encounter these problems themselves.
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. I believe this book is most useful for middle-level software developers who already know the Java language but may not have enough practical programming experience. Some bug patterns described in the book may be unfamiliar to senior software developers as well. Less-experienced developers or even advanced students might also find this book interesting.
Скачать 100 Java Mistakes and How to Avoid Them (Final Release)
Внимание
Уважаемый посетитель, Вы зашли на сайт как незарегистрированный пользователь.
Мы рекомендуем Вам зарегистрироваться либо войти на сайт под своим именем.
Информация
Посетители, находящиеся в группе Гости, не могут оставлять комментарии к данной публикации.