Book Review: Spring REST by Balaji Varanasi, Sudha Belida

9781484208243If you need to build a RESTful API with Java, this book is the way to go. Short and sweet, it covers most of what you need without too much faff.

I particularly liked the chapter on errors. It has quite a bit of code that I copied into my project as a starting point.

When it came to testing, I liked that it acknowledged the need to do integration testing, that is, testing the API with a real database backend. I personally don’t buy the mock everything custom of the Java world as bugs can hide in the integration and these days it’s so easy and fast to test against a real database that I don’t see any value in mocking it out (if you do, the book covers that too).

It has a small section on writing clients using RestTemplate which I wish it was bigger but I understand my needs in this regard are not that common. Particularly, there was no mention on how to deal with the validation errors scheme introduced earlier when using RestTemplate.

All in all, I like this book. For me, computer books should either be short or comprehensive (not padded) and this one is a good example of a good short to-the-point book.

★★★★☆

Buy Spring REST in USA
Buy Spring REST in UK
Buy Spring REST in Canada

Book Review: Beginning Hibernate by Jeff Linwood, Dave Minter

Begining HibernateSweet introduction to Hibernate. I can’t believe it doesn’t cover migrations (and I’m sure some people will point out migrations it’s not part of Hibernate, but without it, there’s no good way to maintain a production database).

The book is on the short side for a computer book and that’s a huge plus. Even then, if you are going to do Spring Boot, like I am, there’s quite a few sections of the book you can skip.

★★★☆☆

Buy Beginning Hibernate: For Hibernate 5 in USA
Buy Beginning Hibernate: For Hibernate 5 in United Kingdom
Buy Beginning Hibernate: For Hibernate 5 in Canada