Published in php|architect
Tuesday, January 6. 2009
I'm very excited to be able to say that I was published in php|architect, in December's issue. I had the /etc column, where I wrote a bit about phpwomen.org and what we're up to these days. As I've wanted to write for them for ages, I was very chuffed to be asked and it was fun doing it :)
Book Review: RESTful PHP
Friday, January 2. 2009
I was recently contacted by the friendly people at Packt Publishing to ask if I'd like a copy of a new addition to their catalogue - RESTful PHP Web Services, by Samisa Abeysinghe.
When I received and unpacked the book, it was a little lighter than I had expected, however REST really isn't rocket science and can easily be covered in a tome this size. Overall it was well-written (with only as many spelling mistakes as any other PHP book) and clearly organised. The author begins by skating over why we don't want to use SOAP, and shows his enthusiasm for REST as a replacement. However before the true elegance and concepts of REST are brought out and revered, we skip straight along and start to look at examples. Very few services that claim to be RESTful actually are, which makes writing anything along these lines very tricky, however I did feel the author could have been clearer about why having a single URL and a parameter for which action should be performed, doesn't fit well. We do get a sense of excitement about services as ways to "glue together" bits of data on the net, and the possibilities of exposing and consuming information in this way.
Several frameworks are mentioned that can be used with REST, I've only heard of one (Zend Framework) - and this book works through a number of examples of working with Zend Framework to provide a REST service. The examples throughout are very thorough - starting with designing the service and getting the semantics of HTTP verbs sensibly applied. We are then taken through building the service using Zend Framework, creating a library class of functionality and then setting up the server to respond to incoming requests. For anyone using this book it is also worth checking for more up to date tutorials; Zend Framework has regular releases and some of the information in the book is already out of date - the dangers of the cutting edge!
On a personal level I'm not a big fan of frameworks; Zend Framework is a favourite but the use of it in this setting means that there is a large amount of the book dedicated to Zend Framework, the MVC pattern, and other things that aren't really anything to do with REST. Call me old-fashioned but for me RESTful services need only HTTP and a data format of some kind, JSON or XML, and a good understanding of the grammar and structure of something that "smells" RESTful. In this book I got bogged down in the cookbook-style examples and lost sight of the bigger picture. The chapter summaries and best practice pointers though were great and I hope readers do take note of these.
If you need to build a RESTful service and you don't mind Zend Framework, then this book will attempt to guide you through the process and explain plenty of useful stuff along the way. For a mid-level PHP programmer coming in to services for the first time, I consider this book a nice entry point. However if you were hoping to pick up the concepts behind RESTful services and look to apply them in your own work, then your $40 would be better spent on the RESTful Web Services from O'Reilly - you won't be copying and pasting working PHP code, but you will come away with some great ideas.
When I received and unpacked the book, it was a little lighter than I had expected, however REST really isn't rocket science and can easily be covered in a tome this size. Overall it was well-written (with only as many spelling mistakes as any other PHP book) and clearly organised. The author begins by skating over why we don't want to use SOAP, and shows his enthusiasm for REST as a replacement. However before the true elegance and concepts of REST are brought out and revered, we skip straight along and start to look at examples. Very few services that claim to be RESTful actually are, which makes writing anything along these lines very tricky, however I did feel the author could have been clearer about why having a single URL and a parameter for which action should be performed, doesn't fit well. We do get a sense of excitement about services as ways to "glue together" bits of data on the net, and the possibilities of exposing and consuming information in this way.
Technical Content
Several frameworks are mentioned that can be used with REST, I've only heard of one (Zend Framework) - and this book works through a number of examples of working with Zend Framework to provide a REST service. The examples throughout are very thorough - starting with designing the service and getting the semantics of HTTP verbs sensibly applied. We are then taken through building the service using Zend Framework, creating a library class of functionality and then setting up the server to respond to incoming requests. For anyone using this book it is also worth checking for more up to date tutorials; Zend Framework has regular releases and some of the information in the book is already out of date - the dangers of the cutting edge!
Excess Baggage
On a personal level I'm not a big fan of frameworks; Zend Framework is a favourite but the use of it in this setting means that there is a large amount of the book dedicated to Zend Framework, the MVC pattern, and other things that aren't really anything to do with REST. Call me old-fashioned but for me RESTful services need only HTTP and a data format of some kind, JSON or XML, and a good understanding of the grammar and structure of something that "smells" RESTful. In this book I got bogged down in the cookbook-style examples and lost sight of the bigger picture. The chapter summaries and best practice pointers though were great and I hope readers do take note of these.
Overview
If you need to build a RESTful service and you don't mind Zend Framework, then this book will attempt to guide you through the process and explain plenty of useful stuff along the way. For a mid-level PHP programmer coming in to services for the first time, I consider this book a nice entry point. However if you were hoping to pick up the concepts behind RESTful services and look to apply them in your own work, then your $40 would be better spent on the RESTful Web Services from O'Reilly - you won't be copying and pasting working PHP code, but you will come away with some great ideas.
PHP Advent Article Published
Friday, December 5. 2008
I was wildly excited a few weeks ago to receive an email inviting me to be one of the contributors to this year's PHP Advent. Actually the biggest kick was seeing my name in a list of PHP luminaries! The article was published today, you can find it at http://phpadvent.org/2008/which-web-service-by-lorna-mitchell - its a short overview of various types of web services around with some pros and cons about when each is useful. To be included in the PHP Advent project has been huge fun, in fact I'm so delighted that I've broken one of my usual rules and blogged twice in one day :)
Posted by LornaJane
in php
at
19:41
| Comments (3)
| Trackbacks (0)
Defined tags for this entry: php, webservice
Zend_Paginator on Ibuildings Blog
Monday, December 1. 2008
In case anyone thought it was a bit quiet around here - that's because I've been working on a few other bits and pieces! Today I posted an article about Zend_Paginator to the Ibuildings blog. Do stop by and have a read - and read the comments as well as there are some good tips in there too!
Posted by LornaJane
in php
at
17:39
| Comments (0)
| Trackbacks (0)
Defined tags for this entry: php, zendframework
PHPNW Post-match Analysis
Monday, November 24. 2008
Last weekend saw a crowd descend on central Manchester in the UK for the first PHP North West conference. We had almost 180 attendees, 12 sessions, 16 speakers, and lots of fun. The day itself went off very smoothly and although I didn't manage to see many of the sessions, the atmosphere both at the conference and at the socials was absolutely buzzing. I found myself doing the introductions which was a bit scary but apparently the audience were more scared than me when I laid down the law about not moving around during the talks!
On a personal level, I met up with lots of friends and also made several new ones - one of the best things about the conference for me was being able to meet "in real life" the friends I've made online, either on IRC or through my site or the phpwomen site. There were people there that I've met through my work and through attending other tech events - and to be able to shake hands and chat in person was great.
We also had a phpwomen stand at the event - which generated quite a bit of interest. For the record, we counted around 15 women in the 174 attendees, which is actually quite a lot - or rather, its more than usual - and it was great to see it. Also there were 2 female speakers out of 16 which was accidental but is also quite a good ratio so I'll mention it (hi Steph, hi Zoe!)
All in all, it was a pretty stunning first conference - I'd like to personally thank Jeremy and the people from his family and company that he dragged in to help, and Jenny who also did a great job. The speakers were ace and the helpers on the day were also really excellent. The main sponsors were my employers, Ibuildings and it was great to have them around for this - and of course to catch up with my colleagues!
On a personal level, I met up with lots of friends and also made several new ones - one of the best things about the conference for me was being able to meet "in real life" the friends I've made online, either on IRC or through my site or the phpwomen site. There were people there that I've met through my work and through attending other tech events - and to be able to shake hands and chat in person was great.
We also had a phpwomen stand at the event - which generated quite a bit of interest. For the record, we counted around 15 women in the 174 attendees, which is actually quite a lot - or rather, its more than usual - and it was great to see it. Also there were 2 female speakers out of 16 which was accidental but is also quite a good ratio so I'll mention it (hi Steph, hi Zoe!)
All in all, it was a pretty stunning first conference - I'd like to personally thank Jeremy and the people from his family and company that he dragged in to help, and Jenny who also did a great job. The speakers were ace and the helpers on the day were also really excellent. The main sponsors were my employers, Ibuildings and it was great to have them around for this - and of course to catch up with my colleagues!
PHP North West Conference in Manchester - Next Week!
Thursday, November 13. 2008
Its been creeping up on us for a while but now PHPNW is almost upon us! PHP people will be arriving from all sorts of places and coming together to attend this event. The schedule is full of excellent talks by a selection of speakers - and we'll round the day off with a lively panel discussion about the PHP community itself.
We've got socials happening right over the weekend - with a pre-conference social on Friday night for people to meet up, catch up, and generally hang out (and drink), the weekend will get off to a good start. Saturday is the main conference event, ticket price includes full access to the event, a year's subscription to php|architect magazine (in print as well as digital format), lunch, and access to the evening party with yet more food (hotpot, since we're in the north!), and of course a selection of drinks.
For those coming from further afield, there is plenty to do in Manchester over the weekend. The conference itself is very central, so you have easy access to the entertainments of the city centre. The shopping is excellent in the city centre and for those who prefer a geekier pastime, entry to the Museum of Science and Industry is free and it is open 7 days a week.
I know there are plenty of people going and I'm really looking forward to it - to catching up with old friends (and colleagues, I don't see them very often!), to making new ones, to hearing the talks that will be going on, and of course to a few drinks and a good time. Hope to see you there :)
We've got socials happening right over the weekend - with a pre-conference social on Friday night for people to meet up, catch up, and generally hang out (and drink), the weekend will get off to a good start. Saturday is the main conference event, ticket price includes full access to the event, a year's subscription to php|architect magazine (in print as well as digital format), lunch, and access to the evening party with yet more food (hotpot, since we're in the north!), and of course a selection of drinks.
For those coming from further afield, there is plenty to do in Manchester over the weekend. The conference itself is very central, so you have easy access to the entertainments of the city centre. The shopping is excellent in the city centre and for those who prefer a geekier pastime, entry to the Museum of Science and Industry is free and it is open 7 days a week.
I know there are plenty of people going and I'm really looking forward to it - to catching up with old friends (and colleagues, I don't see them very often!), to making new ones, to hearing the talks that will be going on, and of course to a few drinks and a good time. Hope to see you there :)
(Page 1 of 14, totaling 79 entries)
» next page


Comments
Mon, 05.01.2009 13:06
Doh! Interesting that you play piano, didn’t know that pi ece!
Mon, 05.01.2009 10:46
Daniel: I completely agree. I do like and use Zend Framewor k, but I already have books about it. When I buy a book on a subject, I don’t really want lots of ZF content. I can on ly assume that because its seen as a “buzz word”, people fee l the need to include it in any books current being wr [...]
Mon, 05.01.2009 10:41
Ubuntu User, Prasad, Joe – I’m pleased this was helpful, tha nks so much for dropping by and letting me know it worked ou t for you :)
Sun, 04.01.2009 23:25
Thanks for the tagging :) I responded (first time ever): htt p://www.urbanwide.com/2009/01/05/7-things/
Sun, 04.01.2009 06:42
You are my freakin’ hero! Thank you soooo much! mainMem.useN amedFile=FALSE fixed all my problems, my wife came back, I w on the lottery….. :) Thanks! Joe
Fri, 02.01.2009 23:33
I agree with your issues about some of the book turning into a mini ZF tutorial book. I feel that lately a lot of spa ce has been wasted on PHP books re-explaining MVC concepts, THEN introducing ZF (or another framework). Chalk it up to p ublishers not wanting to assume everyone reading the b [...]
Fri, 02.01.2009 00:44
All the best for Peru, and the rest of 2009!
Thu, 01.01.2009 23:33
Berry__: For normal people that is probably true but I add all sorts of clues which are different per-server, and still find myself regularly confused about which machine I’m logg ed in to …
Tue, 30.12.2008 15:23
Although I kinda like the colors for tabs, I think it’s over kill to have different colors on different servers. To be ho unest, I think the name of the machine you’re working on (on the left) is clear enough when working with it. The only thing I tend to dislike in screen, is that it’s rathe [...]