Archive for the ‘books’ Category
RESTful PHP Web Services
If you’ve read the architectural notes about RESTful applications and want to get your hands dirty writing one quickly, RESTful PHP Web Services by Samisa Abeysinghe is a book you should read. It starts with an introduction to what REST is and surrounding technologies. Since many web applications today expose their functions as RESTful APIs, you’ll be better prepared to play around with these after reading this book. Also a simple application that explains all the necessary functions for developing a RESTful application is discussed.
Introduction gives the reader a head start about what REST is all about and tools needed to play with RESTful web services. Then PHP libraries and function used for talking to a REST service is explained. How CURL is used to send requests with various HTTP verbs such as GET, POST, PUT, DELETE are explained with examples. After getting an XML response from a service, PHP libraries for manipulating XML and extracting parts of data you want is illustrated with samples. One could directly copy and paste these codes and try it out as they read along. Then the author goes on to explain how to use Flickr with PHP using CURL. If you’ve been using a high level library that insulate the lower level details, this example shows some of the basic API calls and how to use them.
After explaining a mashup of BBC news feed and Yahoo search API, author explains how to design RESTful services. This is carried out along with the simple but complete example of a library system. How to provide a service as well as consuming that using PHP and CURL is explained with complete code samples. Then he explains how to design the same thing using the Zend Framework.
The book concludes with a chapter dedicated to debugging REST web services. Using the TCPMon tool to capture messages and look for possible errors. The chapter ends with a set of best practices that everyone should be aware of if you do any programming with REST web services. The book also mentions WSF/PHP as an advanced framework providing many more functionality amidst of acting as a REST framework. I highly recommend this book if you’re a PHP programmer waiting to get your hands dirty designing RESTful applications. To whet your appetite here’s a sample chapter from the book about designing and implementing resource oriented clients. Enjoy!
Blink
After reading the excellent book The Tipping Point by Malcolm Gladwell I was eager to get my hands on Blink and it was entertaining as I expected. Despite some criticism for The Tipping Point (aka “the magazine article turned book”), it was entertaining for me since I haven’t read the original article. Blink is one book that I could recall finishing in a one sitting read within the past couple of years.
Also, I’ve recently being enjoying the work of talented ventriloquist, Jeff Dunham.
Oh, how long is 20 seconds? Much longer than I initially expected, apparently. I blame on the fricking verb.
Lite reading
Got some quality time over the Christmas holidays to catchup on some books. Here’s a couple of books I enjoyed immensely.
In Search of Stupidity: Over 20 years of high-tech marketing disasters is a book filled with fascinating stories of how tech companies/people behaved and the decisions they took lead to closing down the company that no one is heard about today. If you’re old enough or interested in history of the industry some or most of the stuff in the book might not be new but it’s worth reading anyway because how Rick Chapman lay out those stories. Sarcastic. Hilarious. True. A quote on the book’s website says it all,
“Remember: The race goes not to the strong, nor swift, nor more intelligent but to the less stupid”
Another book that made me forgot about my lunch was iWoz. Provides a truly wonderful insight into the mind of Steve Wozniak. How he made the first Apple computer and gives advice at the end to become an inventor.