Archive for February, 2009
PHP Best Practices #2: Strictures
Make sure PHP is reporting all errors and warnings. Warnings and notices are PHP’s way of letting you know that you are utilising features in a non-standard way. If your code is omitting errors, then it should be fixed as soon as possible. Strict warnings are a class of errors that are turned off by [...]
Objects in Perl (part 2,352)
One of my issues with Perl has always been its implementation of OOP. Or, to be precise, the multitude of ways that a class can be declared (blessed hash, inside-out, Class::Std etc). I would argue that this is a case where TMTOWTDI is not advantageous. Enter Piers Cawley and his _Moose for Ruby Programmers_ talk at [...]
PHP Best Practices #1: Regular expressions
preg not ereg This is the first in what I hope will be a regular series of posts on PHP best practices, inspired in part by Damian Conway’s Perl Best Practices book. Historically, PHP has had two incompatible regular expression engines available, POSIX Extended and PCRE (Perl Compatible Regular Expressions). Arguably, Perl-compatible regular expressions are [...]
PhpDocumentor in 5 minutes
Introduction This is a quick and dirty guide to the absolute minimum you need to get up and running with PhpDocumentor. One of the slightly off-putting aspects of PhpDocumentor is the amount of tags (`@`) that are available, which can initially be overwhelming. e.g. see PEAR example: PEAR sample file This guide shows you the [...]
Steve Krug on Usability Testing
Good introduction to usability testing on a budget: Download free chapters on user testing from Steve’s book, Don’t Make Me Think.