News Feed
Jobs Feed
Sections

Recent Jobs

News Archive
feed this:

Alex Netkachov's Blog:
6 PHP coding tips to write less code
November 05, 2007 @ 07:58:00

Alex Netkachov has shared six tips in a new post on his blog today for how you can write less PHP code and get more done with it. It's based around another post from Arnold Daniels talking about a temporary variable method in PHP.

This tip is useful to "lazy" developers who do not even think about variable names. They may prefer magic names like ${0} and 0 is good enough variable name, why not...

His list consists of:

  • Use || (or) and && (and) operations instead of if.
  • Use ternary operator.
  • Use for instead of while.
  • In some cases PHP requires you to create a variable. [...] To handle all these situation you can create a set of small functions which shortcuts frequently used operations.
  • Explore the language you use.
  • When it is better to write more and then read the code easily, do not be lazy.

Check out Vidyut Luther's response to Alex's comments as well as one from Richard Heyes.

0 comments voice your opinion now!
lazy tips less code list temporary variable arnolddaniels lazy tips less code list temporary variable arnolddaniels



Kore Nordmann's Blog:
Image_3D Performance
May 13, 2006 @ 06:22:27

Kore Nordmann has made a post on his blog with more details on the Image_3D package and some of the rendering times he noticed (and the improvements) with the Zend Guard product.

The ZendGuard offers optimization and encoding for your PHP code. I visited a friend who ownes a license of ZendGuard so that we had the idea to test it with something CPU intesinve like Image_3D. The results were quiet surprising.

According to his results, the Zend Guard optimizer actually dropped the effectiveness and speed of rendering an image with his package - up to a 30% drop!

0 comments voice your opinion now!
php image_3d pear package performance zendguard less php image_3d pear package performance zendguard less


Professional PHP Blog:
Podcast interview with Andi Gutmans
January 31, 2006 @ 06:45:16

Professional PHP has thie opinions posted today about the latest show from the Pro-PHP Podcast - the interview with Andi Gutmans.

I enjoyed Friday's pro::PHP podcast interview with Andi Gutmans. With a name like pro::PHP how can I not like it? This was a less formal presentation than the Zend Framework webcast. Perhaps surprisingly informal for Andi, at least at the end. I thought Marcus Whitney did a great job selecting and asking questions. There were some technical difficulties in the live version. I hope those are worked out for the next broadcast, which I am looking forward to.

Now, the question is early February, or late February?

If you're confused about that last question, check out this post for the scoop. (According to a comment made by Andi, though, they're shooting for "mid-February")...

1 comment voice your opinion now!
php podcast interview andi gutmans less formal mid-february release php podcast interview andi gutmans less formal mid-february release



Community Events











Don't see your event here?
Let us know!


database zend security release package mysql application releases developer code PEAR ajax zendframework conference cakephp PHP5 framework job example book

All content copyright, 2008 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework