Last night John, Jonathan, Alvaro and I got together to talk PHP over dinner and dessert. I had fun and learned a lot. Here are my notes:
- Sitening is a web development consultancy with a bunch of cool online tools and what appears to be a good blog. (I haven’t read it yet.) John printed a post from their blog about databases and PHP. I’m going to subscribe to it.
- We talked about Qcodo, a code generator that John likes because it’s simple.
- Alvaro really likes Propel for creating database objects to perform CRUD operations. It’s “intuitive” to use.
- We discussed apt-get vs. yum, with the winner being apt-get.
- We discussed Ruby on Rails and the similar frameworks for PHP such as Cake, Symfony, and PHP on Trax. John and Alvaro think these frameworks are too limiting, though if the scope of your project falls within the conventions of the framework they can be nice. They both prefer a lighter-weight framework.
- Alvaro is building a custom, light-weight framework that will be simply combine Propel and Smarty. He’ll release it at protonframework.com when it’s ready.
- Alvaro recommends the Selenium Firefox extension for code testing and automation. It can record each of your steps as you use your web app, then you can set up assertions (unit tests?), then you can run the recorded tests each time you make changes to your web app. This seems like a great way to test web apps consistently and thoroughly. I’m looking forward to trying Selenium.
- We discussed the virtues of SVG and lamented that Internet Explorer doesn’t have better support for it. John uses SVG extensively for creating reports and modeling streets and traffic flow in his work.
- With AJAX John can change SVG reports in real time by changing the specific DOM node that needs to be updated. XPath could be useful here.
- On the server side, XPath is useful for screen scraping. You can retrieve an HTML page, run it through Tidy to convert it to XML, then use XPath (through the PHP DOM library) to query it. Alvaro says its easier and more portable than writing regular expressions, which is how I currently do my screen scraping.
- There are Firefox extensions for working with XPath. They allow you to click anywhere on a web page and see the XPath query that would retrieve that element.
- Martin Fowler’s book was recommended.
- By using the Apache directive “ForceType”, you can forgo the “.php” extension on your files and create pretty URL’s. (ALL of your files are parsed for PHP.)
The food was good and the company was excellent. I look forward to doing this again.
John Taber and I are pudding (sic) on a “PHP Hacker Night” tonight. We’ll be meeting for dinner at 7:30 at Las Tarascas [map] in Provo. Dessert will be at Pudding on the Rice, which is next door. Both restaurants have free wifi, so bring your laptops. We’ll discuss PHP programming and any technology topics that come to mind.
For more information see the UPHPU website: PHP Hacker Night
Disclaimer: I realize I’m posting this less than 2 hours before game time, but if you read this in time you’re probably in the target audience, so come!