3/19/2023 0 Comments Learn java the hard way reviewThe text in Java by Comparison is easy to read, highly approachable, succinct, and well suited for those newer to Java.Links to online resources work from PDF.PDF version provides links between pages that reference each other.Code listings have color-coded syntax and shaded background in the PDF version of the book.This seems to be an increasingly rare characteristic of technical books. Java by Comparison is polished and has very few grammatical errors or typos.The authors find a nice balance of small, simple code examples and just enough text to cover the point.The format comparing working code with superior code is effective in illustrating the principle discussed in each item.Most of the lessons discussed in Java by Comparison are ones that I've had to learn the hard way, and I found myself agreeing with most of the recommendations (and I've even blogged on some of them).Java by Comparison uses several different parts of the JDK API to illustrate its points.There is a side note about "Never Use Floating-Point Arithmetic for Money" in the section on using appropriate tolerance values in unit testing.Single Return per Method" in the section on avoiding unnecessary comparisons. There is a side note about "Multiple Returns vs.As Java by Comparison covers various topics, it also introduces useful side notes of value to newer Java developers.Java by Comparison collects information useful to newer Java developers in a single location.I consider the following to be strengths of Java by Comparison: Content This chapter is mostly higher-level and provides a taste of these topics for the newer Java developer. That chapter has fewer code samples and more descriptive text of general practices experienced Java developers tend to adopt in areas, such as static code analysis, build automation, continuous integration, logging, and working with concurrency. The ninth and final chapter is different from the first eight chapters. Simple code examples are used in each item to contrast minimally sufficient code with improved code. Java by Comparison covers specific principles that fall into the areas of clean code, stylistic considerations, readability considerations, comments, naming, exception handling, unit testing, object-oriented design, and using Java's functional capabilities that were largely introduced to the language with JDK 8. There are three samples of these items ("extracts") available on the book's website to see what I'm attempting to explain here. The first code sample for each item is typically functionally correct code, but the second code sample for each item illustrates how that particular item's principle can be applied to improve that code. Each of these eight chapters is divided into several items each with at least two code samples for each item. Java by Comparison uses the same format for eight of its nine chapters. Java by Comparison features nine chapters and the 70 cases covered span the first eight of those nine chapters. Java by Comparison is written by Simon Harrer, Jörg Lenhard, and Linus Dietz and has over 160 pages of substantive content (not counting prefaces, forewords, table of contents, etc.). I was provided with the electronic version of the book and I chose the PDF format for my review. The book Software Craftsmanship: The New Imperative had a significant effect on me when I was a less-experienced software developer, and I looked forward to reviewing Java by Comparison because of its connection with the concept of software craftsmanship and its examples being provided in the Java programming language. I accepted the invitation to review Java by Comparison: Become a Java Craftsman in 70 Examples (2018, The Pragmatic Bookshelf) because the premise of this book interested me.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |