Archive for July 4th, 2007

PHP-Coding-Practices.com: Composing Methods: Split Temporary Variable

On the PHP-Coding-Practices.com blog, there’s a tutorial posted from Tim Koschuetzki in his “Composing Methods” series looking at assigning temporary variables.

When you have the same temporary variable assigned to more than once, split it up into two, unless it is a loop variable. […] Temporary variables have various uses. They can be used as counters in loops, as collecting variables building up a result or as simple containers containing the result of a long-winded expression for easy reference.

He offers suggestions of using temporary variables, including changing references of it after use and making a new temp variable following the second assignment of the first one. Some sample code is included to illustrate the points made.

Continue Reading · Add comment

Stubbles Blog: Stubbles 0.2.0 released

The Stubbles group has released the latest version of their PHP framework - version 0.2.0 of Stubbles:

The Stubbles team is proud to announce the release of Stubbles 0.2.0. This release is another alpha version and contains the basic MVC structure as well as support for JSON-RPC, utility packages for working with datespans, URLs and a cache package. Additionally the build system has been enhanced and a lot of bugs have been fixed. For a complete list of changes see the changelog. The release can be downloaded from our downloads page.

Other enhancements in this new version include updates to the build system, the inclusion of more examples, changes to several packages including the JSON-RPC, Util and XML functionality.

Continue Reading · Add comment

International PHP Magazine: Three Releases - Graphing, Blitz and Plugins

The International PHP Magazine has links to announcements of three new releases of PHP-related applications - the PHP Advanced Graph and Chart Collection, Blitz Templates and the Generic PHP Plugins & Config System:

  • PHP Advanced Graph and Chart Collection 5.1 provides a very easy way to embed dynamically-generated graphs and charts into PHP applications and HTML Web pages
  • Blitz templates 0.4.19 Blitz templates is a fast template engine written in C and compiled as a PHP module. It started as a php_templates replacement, but developed into much more.
  • Generic PHP plugins and config system 0.75 Plugin meta descriptions can reside as human-friendly comment blocks in .php scripts. Generic PHP Config reads them and facilitates plugin and configuration setting management.

Continue Reading · Add comment

Nick Halstead’s Blog: Poll - Top 10 Programmers of All Time

Nick Halstead is conducting a poll of his own to try to figure out who the online community thinks are the “Top 10 Programmers of All Time”.

My original list was based upon my programming background and was purely my own opinion and I did not expect everyone to agree with it. What I thought I would do this time round was to give everyone a chance to voice their opinion. […] have pre-filled 18 programmers from my original list plus those that were suggested in the comments.

You can vote on a wide range of developers, including several PHP-associated once like Rasmus Lerdorf, Andi Gutmans and Zeev Suraski.

Continue Reading · Add comment

Community News: Latest PHPClasses.org Releases for 07.04.2007

Latest PHPClasses.org Releases:

Continue Reading · Add comment