/dev/null

Elite is stupid. Back to the roots.

September 15, 2008

Photos from ZendCon and San Francisco

ZendCon: Best Practices

Tags: , , , , — 19:19

I found three useful ideas in the PHP Developer Best Practices tutorial by Matthew Weier O’Phinney (Zend Technologies, Ltd.), Mike Naberezny (Maintainable Software):

  • Add something like PHP_CodeSniffer to pre-commit in Subversion to reject code that doesn’t follow standards
  • Run tests in a Subversion post-commit script
  • Try to switch to git, because you can also do commits when offline

Sadly, there were also less good ideas like

  • Prefix private/protected class methods and properties with an underscore (makes refactoring very difficult; instead you should start with all properties being protected anyway and only make properties public, that need to be public)
  • Limit line length to 85 chars (120 chars are ok – nobody uses a 80 char text console for coding anymore – wide screens are standard, even for developers)
  • Use PHP_CodeSniffer (I like ZendCodeAnalyzer)

Look at this, if you wanna see bad practices:

September 1, 2008

ZendCon 2008

Tags: — 19:26

I will not only be at the Web 2.0 expo and Barcamp 3 in Berlin but also at the 4th Annual Zend/PHP conference, which will be held on September 15-18, 2008 in Santa Clara, California. That’s in about 2 weeks. Maybe see you there.

ZendCon 2008

Powered by PHP, Memcached, Suhosin, MySQL and WordPress