LogoPhly, boy, phly
the weblog and site of Matthew Weier O'Phinney

Wednesday, November 1. 2006

PHP Best Practices

Yesterday, Mike and I presented our session "Best Practices of PHP Development" at this year's Zend Conference. It was a marathon three hour tutorial first thing in the morning, and we had an incredible turnout, with some fairly enthusiastic people in the audience.

Download the slides slides for PHP Best Practices.

We ended up cutting a ton from the session the night before, as we discovered we actually had way too much material. Amongst the cuts were sections on:

  • Comparisons of different coding standards. I'd worked up a comparison of eZ Components and Zend Framework standards to contrast against PEAR's.
  • Functional testing. Mike put a lot of effort into the unit testing section, and I'd done an additional section on functional testing -- testing against fixtures, such as test databases, sandbox services, etc.
  • Repository layout. Mike actually talked about this briefly, but we'd intended to show some designs for subversion layouts, and how to create and use branches and tags.
  • Subversion hook scripts. We mentioned their existence, and some uses, but we'd hoped to show how to add these to your repository, and some sample scripts.
  • Mailman. How to setup archived mailing lists.
  • Capistrano. Mike mentioned this tool in the talk, but did not have time to go into examples of usage.

Basically, most of the topics we covered could have easily been a session in their own right. However, having a big block of time to cover the spectrum I believe helps show how to integrate the individual solutions into a set of cohesive development practices.

I hope to blog about some of the areas we had to skip in coming months.

To those attendees who came to the session yesterday, thank you for being a great audience!

Posted by Matthew Weier O'Phinney in PHP at 00:01 | Comments (3) | Trackbacks (0)

Trackbacks
Trackback specific URI for this entry

No Trackbacks

Comments
Display comments as (Linear | Threaded)

Amazing slide, I wish I was there.
#1 Geoffrey (Link) on 2006-11-01 08:31 (Reply)
Hi,

We are also setting up our best practices.
With a team of 8 persons in various locations, it became essential...

This started with the CVS, phpDoc and naming conventions (mainly from PEAR), and now we turn to the development 'phases' (analyses, code, deliveries, etc) and code best practices (implementation of MVC, dir structures, etc)

Thanks for your slides, I'll check what we missed so far!

Maybe you forgot the UML or other pre-code analyses (functional/technical) We have added this into our standards. StarUML can then generate classes skeletons...

vincent
#2 Vincent Dupont on 2006-11-24 17:19 (Reply)
Great slides! Any chance a recording was made? :-)

--Michael
#3 Michael on 2006-12-20 23:14 (Reply)

Add Comment

Standard emoticons like :-) and ;-) are converted to images.
E-Mail addresses will not be displayed and will only be used for E-Mail notifications

To prevent automated Bots from commentspamming, please enter the string you see in the image below in the appropriate input box. Your comment will only be submitted if the strings match. Please ensure that your browser supports and accepts cookies, or your comment cannot be verified correctly.
CAPTCHA

 
 
  • Home
  • Resume
  • Blog
  • Phly PEAR Channel
  • Contact Me
  • About this site

ZCE

Zend Education Advisory Board Member

Add to Technorati Favorites

Calendar

Back September '08 Forward
Mon Tue Wed Thu Fri Sat Sun
1 2 3 4 5 6 7
8 9 10 11 12 13 14
15 16 17 18 19 20 21
22 23 24 25 26 27 28
29 30          

Quicksearch

Links

  • PHLY - PHp LibrarY
  • Paul M. Jones
  • Mike Naberezny
  • Shahar Evron
  • Planet PHP
  • Zend Where I now work
  • Garden.org Where I once worked

Archives

September 2008
August 2008
July 2008
Recent...
Older...

Categories

XML Linux
XML Personal
XML Aikido
XML Family
XML Programming
XML Dojo
XML Perl
XML PHP

All categories

Syndicate This Blog

XML RSS 0.91 feed
XML RSS 1.0 feed
XML RSS 2.0 feed
ATOM/XML ATOM 0.3 feed
ATOM/XML ATOM 1.0 feed
XML RSS 2.0 Comments

Show tagged entries

xml best practices
xml books
xml conferences
xml dojo
xml dpc08
xml file_fortune
xml linux
xml mvc
xml pear
xml personal
xml php
xml programming
xml ubuntu
xml webinar
xml zendcon
xml zend framework
© 2004 - present, Matthew Weier O'Phinney
matthew-web <at> weierophinney.net