Note: This post is over two years old and so the information contained here might be out of date. If you do spot something please leave a comment and we will endeavour to correct.
24th April 2011 - 5 minutes read time
I was lucky enough to pick up a couple of free books from the recent PHP Unconference Europe, one of which was Beginning Zend Framework by Armando Padilla. Having not looked into Zend Framework for a while I thought I would read the book to refresh my knowledge catch up and post a review.
The premise of the book was to create a sample application to keep track of music artist information, with each chapter building on the code from the previous. The first few chapters are about installing Apache, PHP and MySQL and some UML diagrams of the application that will be built. After reading this I was actually enthusiastic about the application and couldn't wait to get started.
The book is generally well written in a nice and friendly tone, but the actual book is quite lacking on useful content and feels almost rushed. After the initial excitement of the project that would get built at the end of the book I started to realise that some fundamental things were missing. The one and only reference to any session management in the book is about page 200, and even then this is not a maintainable or managable solution and didn't use the Zend_Auth class at all. I appreciate that the majority of the work should be given to the reader of the book to do, but even so, not explaining session management properly felt a bit disappointing.
Many of code examples (especially within the database and forms sections) are given 3-4 times, which seemed kind of redundant. Taking the form section as example they are first created as flat html, then using a Zend_Form object within a public method in the controller, and then finally as an included class. What surprised me was that his example class didn't extend Zend_Form. Some of the examples also had simple mistakes that would cause major errors like missing closing braces or typos. I almost feel that the book could have been 200 pages shorter but have the same content. I kept reading code examples and saying "that looks like a useful bit of code, but I wouldn't have done it like that".
What frustrated me more than anything about this book was that there was little or no emphasis on the use of object oriented principles or best practice use of Zend Framework components. Classes where simply included using include(), rather than regestering them with the autoloader, and although Zend_Tool was introduced and used to create the project it was soon circumvented by creating new classes and actions by hand.
There are lots of reference tables and lists so I will probably be looking at the book in the future to refresh my memory on the specific components of objects like Zend_Db_Select. Unfortunately, I can't recommend this book as a beginners tutorial for Zend Framework. There just isn't enough good quality advice in the book for beginners to set out in the world of Zend Framework with confidence.
If you've ever looked at the settings in a digital camera, or have experience with image processing programs like GIMP, then you may have seen a colour histogram. This is a simple graph that shows the amount of different shades of colour are present in the image.
I was writing unit tests for a API mapping function recently and came across this interesting issue. The code I was writing tests for was in a legacy codebase that I was making changes to, and it made sense to have some unit tests in there before I started work to ensure everything worked before and after.
Embedding image within pages of content helps both within the design of the page and when shared on social media. If you set up meta tags to point at a particular image then that image will appear when the page is shared on social media. This makes your page stand out more.
Generating a PDF document from a web page through PHP can be problematic. It's often something that seems quite simple, but actually generating the document can be difficult and time consuming.
Comments
Hi Philip,
Thank you for this review. It really helped me made up my min and not buy this book.
I think you should post this review on amazon too.
Hoping to see more book review soon.
Submitted by Azizur Rahman on Mon, 04/25/2011 - 02:18
PermalinkThanks for letting us know. Any further updates on this planned in future?
Steve
Submitted by Stephen on Tue, 09/20/2011 - 21:48
PermalinkAdd new comment