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

**URL:** <https://forum.devtalk.com/t/java-by-comparison-good-advice-applicable-to-non-java-code/1362>\
**Category:** PragProg Customers\
**Tags:** book-java-by-comparison\
**Created:** [23 August 2020 12:19 UTC](https://forum.devtalk.com/t/java-by-comparison-good-advice-applicable-to-non-java-code/1362 "2020-08-23T12:19:26Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![mjk](https://forum.devtalk.com/letter_avatar_proxy/v4/letter/m/cab0a1/32.png) [@mjk](https://forum.devtalk.com/u/mjk)\
**Post date:** [23 August 2020 12:19 UTC](https://forum.devtalk.com/t/java-by-comparison-good-advice-applicable-to-non-java-code/1362/1 "2020-08-23T12:19:26Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![simonharrer](https://forum.devtalk.com/user_avatar/forum.devtalk.com/simonharrer/32/499_2.png) [@simonharrer](https://forum.devtalk.com/u/simonharrer)\
**Post date:** [25 August 2020 08:23 UTC](https://forum.devtalk.com/t/java-by-comparison-good-advice-applicable-to-non-java-code/1362/2 "2020-08-25T08:23:55Z")

</div>

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.
