Effective Java – make your code better – book review

Recently I bought a book I wanted to read for a long time, the Polish translation of “Effective Java (2nd edition)” by Joshua Bloch. I found many very positive opinions and reviews (some from Amazon) about this title and after more than 250 pages I can say one thing:

If most programmers consider the Core Java book to be the best one for beginners, they should think about “Effective Java” as the best book for intermediate and more advanced Java programmers.

After this book, my awareness of how good Java code should look improved a lot. I learnt a lot of interesting and useful approaches to developing code in different situations. And, in spite of being heavily packed with knowledge, I cannot say that reading this book was difficult. It was a nice read, although some topics are more complicated and forced me to slow down and analyse paragraphs one by one.

Advice presented by the author is useful to any programmer, even for those considering themselves as very experienced Java masters. I am not yet at such a level, so I found many tips and tricks inside. In my opinion, the most interesting chapters are those about:

  • New objects creation
  • Using Enums
  • Introducing generics to methods and classes

The most boring part of the book is the chapter about serialization, but probably mainly because of my lack of experience in this area.

A very nice thing about the Effective Java book is its modularization. Every topic is an autonomous part and can be read separately. If some areas are not interesting for you, you can skip them and continue reading in another place without finding yourself in a dead end because something was explained in a chapter you skipped.

I consider this book a really, really good book to read. The advice which can be found inside will be helpful for every Java developer, so I suggest that you should buy it and place it in your home library.

Written by

Tomasz Dziurko

VP of Engineering at [SoftwareMill](https://softwaremill.com), a 100% remote software consultancy and part of the VirtusLab group. I build engineering organizations that scale without losing the people who make them work. [More about me]({{site.baseurl}}/about-me/)