News Feed
Jobs Feed
Sections




News Archive
feed this:

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

Michael Nitschinger:
A Journey on Avoiding Nulls in PHP
February 20, 2013 @ 12:17:39

Michael Nitschinger has written up a post looking at avoiding nulls in your applications in favor of a better kind of value handling - the introduction of "Optional" handling.

While every developer has kind of accepted their existence, they are suddenly there when we'd desperately need them to not show up. How often did you writeif($obj === null) in your PHP code? Can't there be a better, more elegant and fault-tolerant solution to the problem?

His solution is to create a PHP version of this "Optional" functionality (via an abstract class) that allows some evaluation of the returned value from method calls on the object. Methods like "isPresent", "getOrElse", "of" and "fromNullable" make it easier to work with null values instead of just the triple-equals checking. He includes not only the code for the classes you'll need to implement it but examples of it in use - an "Optional" abstract class and two child classes, "Present" and "Absent".

0 comments voice your opinion now!
avoid null return value optional absent present evaluation tutorial


Danne Lundqvist's Blog:
Gartner report on PHP
January 13, 2010 @ 09:53:21

As Danne Lundqvist mentions in a new post, there's a new post on the Gartner.com site about the past, present and future of the PHP language.

From the Gartner post:

I just published a research note on PHP. Clients can find it here. The research note goes into *much* more detail but the overview is [in the rest of the post]. Keep in mind that this content is targeted at mainstream IT organizations. PHP has been a cornerstone technology on the Web for more than a decade. While its adoption among mainstream IT organizations has been limited in the past, many corporate application development (AD) projects are discovering the unique benefits of PHP.

Danne highlights two quotes that were of particular interest in the report - one from the quote above about PHP being a cornerstone of many corporate web application development and the other talking about PHP's role not just in backend application development but also it being useful in front-end toolsets too.

0 comments voice your opinion now!
gartner report past present future


Sebastian Bergmann's Blog:
emPHPower @ OSCON
July 10, 2008 @ 11:18:20

Sebastian Bergmann has poted about a new something that he'll also be doing at this year's OSCON - leading a discussion about the emPHPower initiative.

As the PHP community grows however, it becomes harder and harder for people to come together from the various corners of the community. [...] That being said, maybe there is still something we could change for the better? PHP contributor Lukas Smith has formulated his vision for such an effort in the form of an organization that would serve as a mediator and catalyst between all the members of the PHP community under the code name emPHPower.

The session will be happening on Monday the 21st from 7-8pm.

0 comments voice your opinion now!
emphpower oscon2008 birdsofafeather session present



Ben Ramsey's Blog:
PHP Unconference '07 and ZendCon IRC Channel
August 24, 2007 @ 08:43:00

Ben Ramsey has a reminder for those attending this year's Zend/PHP Conference & Expo (or maybe an incentive for those not yet signed up?) about the Unconference that will be happening in its own space where developers can come and present on their own topics.

When was the last time an event challenged your assumptions, and made you think? The PHP Unconference is a way to bring people who have a shared interest in PHP together. It could be just to explore interest in a common theme or it could be to do work together to accomplish a goal.

This year's chairperson is Patrick Reilly and they've posted some basic principles presenters will need to follow as well as a space on the wiki for topic suggestions or ones you'd like to present on.

You can learn more about this year's conference from the main conference website and stop by the zendcon channel on the Freenode IRC network to meet other attendees.

0 comments voice your opinion now!
zendcon2007 unconference irc channel present speaker zendcon2007 unconference irc channel present speaker



Community Events











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


performance application release install threedevsandamaybe database package podcast hhvm component introduction unittest hack security composer symfony2 framework project facebook language

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