The Voices of the ElePHPant podcast has posted their latest episode - an interview with Bulat Shakirzyanov.Cal's "three questions" for Bulat revolve around his work with unit testing:
How do you counter the arguments that unit testing takes too much time or their boss/client won't give them the time to learn or practice testing?
Do you advocate 100% unit test coverage - if so, why (and if no, why not)?
Why is it important for developers to mock native PHP commands in their unit tests?
You can listen to...
In a new post to his blog Chris Hartjes shares a technique he figured out for testing web services in Zend Framework 1.x - in his case, a remote application he wanted to mock out with test doubles that would give different responses based on the parameters given.Reading the existing PHPUnit documentation did not provide me with enough hints on how to solve this particular problem, so while I dug around duckduckgoing for a solution I asked Twitter for help. One blog post and 3 tweets later, I had the...
Gonzalo Ayuso has posted the results of some testing he's done in using stored procedures in a PHP application. He compares the run time of two different scripts, one using prepared statements and one without, to see which would perform better in the long run.Last week I had an interesting conversation on twitter about the usage of stored procedures in databases. Someone told stored procedure are evil. I'm not agree with that. Stored procedures are a great place to store business logic. In this post I'm...
Latest PECL Releases:
As I recently noted, we have teamed with Adobe to deliver a solution for developers to rapidly deliver native, connected mobile applications. This joint solution based on Adobe Flash Builder, Zend Studio and Adobe AIR enables users to use a common code base and target multiple devices including iOS, Android and Blackberry. Passed are the days where you have to learn Objective-C, Java and other native frameworks. A recent research report noted that the # of Mobile app downloads will reach 44 billion by...
If you're attending this year's Dutch PHP Conference, they've just posted an important announcement about the conference social:The conference social will now take place at a venue called ClubNL, which is also in central Amsterdam and within easy walk from the Amsterdam main train station. Please remember to hold on to your conference badge, as you will need it to gain access to the event. For more details check out the updated social page on our website. We are hoping to see you all there!There's still...
Phil Sturgeon has put out a call for volunteers about running some benchmarks on the wide range of PHP frameworks out there. He wants set up a "Benchamrks 2011" event that gives all of the frameworks their fair share at putting up good numbers in their most optimized fashion.Yesterday Dan Horrigan (another PHP framework user and developer) suggested we all have a go at "Benchmark 2011". A chance for every framework developer or interested party to take their framework of choice, make a hello world and...
As mentioned in a
we started building Gimme Bar a little
over a year ago. We did a lot of things right, but we also did some things
Since-in those early days-I was the only developer, and since most of my
professional development experience is in PHP, that choice was obvious.
I also started building the API
before the front-end.
I chose a really simple routing model for the back-end, and got to work,
sans framework. Our back-end code is still really lean (for the most part),
In a new post to his blog Stefan Koopmanschap shows you how to get DocBlox installed for your documentation-generation needs as an alternative to phpDocumentor.People using PHP that want API documentation usually automatically think of phpDocumentor, which used to be the de facto standard for generating API documentation from your PHP projects. However, the project has been dormant for a long time now and definitely does not support new PHP features such as namespaces, so it was really time to look for...
During some of his development, Christian Weiske found the tests for a project he was working on too slow for comfort and figured there had to be a way to find the root cause:Running the specific test cases for the part of the application you're working on is easy and fast, but that does not tell you when changes in part A of the app break part B - which happened several times, and all just because I didn't want to wait 45 seconds again and again. So a solution was badly needed; tests should be as fast...
On PHPBuilder.com Jason Gilmore has posted a new article looking at the benefits of dependency injection in helping you keep your code more maintainable and well-structured.Of course, the advantages of object-orientation can only be fully exploited when implemented in conjunction with best practices such as encapsulation and inheritance. One such "implementational" best practice is dependency injection, a design pattern that facilitates the decoupling of otherwise dependent components. [...] Save...
This second and concluding segment of our tutorial on Twig templating discusses more advanced templating options, including goodies like template inheritance, custom filters, caching and Zend Framework integration. It also tells you a little more about what goes on under Twig's hood, and shows you how to add more power and flexibility to your PHP and Twig templates.
Latest PEAR Releases:
There's two PHP conferences right now that have their CfP open where I'm one of the people who will be selecting the proposals. I would like to invite everyone to submit to these CfPs as both conferences are awesome!