Java by Comparison: Good advice applicable to non-Java code

Many of the 70 recommendations are applicable to other modern(-ized) object-oriented languages. I read the book even though I was looking for C# tips. The sample content, which included the table of contents, showed that the book was for more than just Java coders.

By my count:
8 of the recommendations were primarily for correctness
2 were for performance
4 overlapped readability with correctness or performance
the remaining 56 were about readability and can apply to many other languages.

4 Likes

In retrospective, the title of the book should have been something like „Cleaner Code by Comparison“. The Java in the title mislead probably some people. And the cleaner (relative) instead of clean (absolute) is important as well, to show that code can only be improved relativ of what was before.

1 Like