11:18am PT, Thursday Nov 20
The value of writing an RFC - Lukas Smith

Posted on Wednesday 18 June 2008

So yesterday I spend a few hours writing out an RFC for ifsetor() (note that I put it into the “declined” section). While working through the discussion again, I realized that I had forgotten an important detail in the discussion: Currently we cannot provide a true COALESCE() implementation, which allows for any number of parameters. As such I totally forgot why people felt that the pass by reference hack was considered by these people as a viable approach. I also finally documented in detail why the addition of the shorthand ternary operator “?:” in PHP 5.3 is no replacement either.

(more…)

Popularity: unranked [?]

Tags: , , ,
Alex Loft @ 5:06 am
Notification Free PHP Coding - Gaylord Aulke

Posted on Thursday 12 June 2008

Sorry guys, flamebait again. But i need to say this: I HATE NOTIFICATION FREE PROGRAMMING in PHP!
If you want to code Java, go ahead! If you use PHP, enjoy the simplicity it brings!
Today i found this code by someone who really wants to do it right:

$email = (key_exists(’email’, $values)) ? $values[’email’] : null;
$password = (key_exists(’password’, $values)) ? $values[’password’] : null;
$firstName = (key_exists(’firstname’, $values)) ? $values[’firstname’] : null;
$secondName = (key_exists(’secondname’, $values)) ? $values[’secondname’] : null;

(more…)

Popularity: unranked [?]

Tags: , , ,
Alex Loft @ 1:06 am
OAuth For PHP Status Update… - Pdraic Brady

Posted on Saturday 7 June 2008

Earlier today I finished up work on the initial OAuth library. It has a few rough edges and missing features, but the bulk of the work for an OAuth Consumer is there. The rest is refactoring, feature iteration, and testing.

The new library is specifically targeted as a dual-proposal. It has been proposed to both PEAR and the Zend Framework. Rather than maintaining two distinct versions, or one distinct version with a heavy dose of abstraction, both are derived from the Zend Framework version. In essence, I develop primarily on the Zend Framework version, iterate patches onto a simple Phing task-chain, and out comes the PEAR version. This extends itself into the test suite too. This allows me to use the same base code, with changes appropriate to the underlying system (e.g. using PEAR HTTP_Request instead of ZF Zend_Http_Request).
(more…)

Popularity: unranked [?]

Tags: , , , ,
Alex Loft @ 9:06 pm