News Feed
Sections




News Archive
feed this:

Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

Sameer Borate's Blog:
Refactoring 2 Extract Method
January 12, 2009 @ 20:18:35

Sameer has posted the second part of his series looking at refactoring with a spotlight on the Extract method.

The 'Extract Method' is one of the most common refactorings you will ever do. It is also one you will frequently see implemented on the Refactor tool menu on various IDE's. What this method basically does is to take a group of related code and convert it to a function with a appropriate name that easily explains the purpose of the code.

He gives a code example - converting hotel room price to points based on the currency its requested in - both with and without the Extract method in use.

0 comments voice your opinion now!
refactor extract method example convert hotel price points


Zend Developer Zone:
Tim Bray Explains Why Solaris in a Good Choice for PHP Developers
October 20, 2006 @ 09:51:56

Over on the Zend Developer Zone, Cal Evans shares part of a mini-interview (one question, really) where Cal asked Tim about Solaris as a hosting and development platform for PHP.

Tim will be at ZendCon this year participating in a panel discussion titled "How Do The Stacks Stack Up?" I talked with Tim by phone because I was curious why PHP developers should consider Solaris as a development and deployment environment. Here's what Tim had to say.

His answer was based around three main points - observability, virtualization "stuff", and the ZFS filesystem all Solaris systems come installed with. And, of course, he explains the thought process behind each (briefly).

0 comments voice your opinion now!
solaris interview timbray developer question three points solaris interview timbray developer question three points


Aaron Wormus' Blog:
32 Cards - PHP Based World CUP 2006 Game
April 27, 2006 @ 06:40:30

Aaron Wormus notes in this new blog entry about a client-side card game he's been introduced to that comines great graphics, a smart AI and a powerful combination - PHP5 and the Winbinder library.

I remember the WTF moment I had a couple years ago when Frozen Bubble was released. The game was nice but the awesome bit was the it was based on PERL, which was my programming language of choice at the time.

I had that moment again this morning when an email arrived in my mail box from Rubem Pechansky (The WinBinder Guy) where he announced his Worldcup 2006 card game which is based entirely on PHP5 and Winbinder.

The game, 32cards is a digital card trading game with tons of data about each country for each card. On each turn, the topmost card is uncovered and five stats are compared. The player with the highest stats wins and points are awarded. You can gabs this great example of how flexible PHP really is (and try out a pretty cool game) by heading over to their site and grabbing the download.

2 comments voice your opinion now!
card game world cup computer player points winbinder card game world cup computer player points winbinder



Community Events





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


update framework series package community security interview tool podcast version opinion introduction voicesoftheelephpant symfony library composer install laravel language release

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