Archive for the ‘books’ Category

REST in Practice

søndag, januar 23rd, 2011

by Jim Webber, Savas Parastatidis, and Ian Robinson

The author team takes their RESTBucks coffee shop application through Richardson’s Maturity Model explaining the issues at each level. Java (JAX-RS) and .Net implementations.

Then they go on to explain the importance of Hypermedia, and mentions that the hypermedia is a part of the representation. I’m not quite sure about this.
I tend to disagree with the way they implement this; as a List<Link> member. There are benefits and security issues with this approach. It becomes possible for any client to set a link including overwriting a link. While this can have benefits, the immediate security issues of a client setting e.g. payment links to phishing sites are also present.

They also like to use the Atom and AtomPub envelopes, which I fail to see work on a more common approach, that is, on any other media than formatted text.

The book is more recent though, and a good read.

RESTful Java Web Services

søndag, januar 23rd, 2011

The author, Jose Sandoval, goes over the same application for the different frameworks: JAX-RS, Restlet, RESTEasy, and Struts2. Well, the RESTEasy part is quickly skipped as RESTEasy builds on top of JAX-RS.

I tend to disagree with the way the example code is written, but that could just be down to a difference of opinions or different cultures. It’s important to look at the downloadable example code as the book was written prior to Restlet 2.0 release. The example code covers both versions.

The book has sufficiently many typos and minor flaws that it becomes annoying.

REST und HTTP

søndag, januar 23rd, 2011

German being my 3rd language, this is not the fastest read, but the book seems thorough in its coverage of the subject. The code used for some of the examples is written in Ruby on Rails but focus is more on XML and HTTP headers - which makes it understandable for most readers.

Stefan Tilkov explains some issues with Atom and AtomPub, and why developers may want to use it even though it’s not the best fit for the current application. The major issue with Atom - as I see it - is that it’s yet another envelope, something we should leave alone.

RESTful Web Services

lørdag, januar 22nd, 2011

This book, by Leonard Richardson and Sam Ruby, is prominently called ‘The Bible’ with regards to REST - I think this has more to do with the fact that it’s the first book on the subject than anything else. The “bible” - or should that then be “the word” must be Fielding’s Thesis

Code examples are primarily in Ruby - not that it matters much in the case where the HTTP is more interesting than the underlying code.

As @stilkov mentions: “I agree with at least 80% of it.” - I tend to agree, and I’m hoping that I’m agreeing with Stefan Tilkov in the same 80%

It’s a good book on REST and it leaves open some of the issues still needing closure - if closure is possible.