Monthly Archives: January 2010

Javascript Unit Testing, Test Pages (test classes).

I have known about javascript testing for a while, about a year. I mostly wrote it off as something “too advanced” for me. I looked at it as overkill, and in the past just have not had the time to … Continue reading

Posted in Uncategorized | 1 Comment

Phing ** Work-Around

When you use this in a fileset tag in PHING: <include name="Vaf/**" /> You would expect it to include Vaf/foo.php, but not Vaffoo/bar.php This works on windows, but not on Linux? Reading the manual I see "In patterns, one asterisk … Continue reading

Posted in Uncategorized | Leave a comment

PHP Pitfalls Part 2 – Code Blocks

In PHP blocks may stand on their own line. For this reason if you take the following code: public function foo() { $array = array( 1, 2, 3 ); $copy = array(); for( ; $value = current( $array ); next( … Continue reading

Posted in PHP | Leave a comment

How the Data Mapper pattern enhances code refactoring

We all know code needs to be refactored. Duplication sometimes need to be factored out. Sometimes we think of a more clear name for a method or variable and wish to rename something. Sometimes we accidentally use names that are … Continue reading

Posted in PHP, Testing, Uncategorized | Leave a comment

Tony Marston. Programmer fish or Troll?

Tony Marston is a troll.
He doesn’t understand the difference between a pattern and a methodology. If anyone writes him and says they find patterns useful, he will immediately assume you use patterns as a methodology (like him).

I mean why else would you write an article called “design patterns are dead”.

Ps > this post has been made in satire of his “crazy headlines” writing style. Maybe he should write a pattern on language on this next. Continue reading

Posted in Programming | 7 Comments