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

P
May 30, 2011 @ 09:48:29

Lukas Smith has a suggestion for developers out there who get the idea to start messing with the order of the parameters of PHP objects/methods - play nice. His example is specifically with Exceptions.

This is just a short follow up to a recent tweet of mine. I have seen this repeatedly happen, even to top notch and usually very careful developers (*). I am not sure why this mistake happens so frequently, but quite often you see code that changes the parameter order for custom Exception constructors. I guess it's mostly because in these cases the developer wants to pass some magic parameters that contain the message (and potentially also the code).

He recommends that, if you really do need to change something like the order of the parameters, use something like a factory to handle the reorganization for you.

0 comments voice your opinion now!
extend reorganization factory designpattern


Matthew Weier O'Phinney's Blog:
ZF Subversion Reorganization
May 23, 2008 @ 09:35:59

If you're using the subversion checkouts of the Zend Framework, Matthew Weier O'Phinney recommends you update your checked out copy to bring it up to sync with the reorganization they've just finished.

We just completed a reorganization of our subversion repository. The reorganization was necessary due to changes we are introducting both in our proposal system as well as project architecture. Specifically, we are introducing a new library, our 'Extras' library, which will contain contributions that are not officially supported by Zend but which still require successful completion of our proposal process. Additionally, we are merging our Laboratory repository.

This page on the Zend Framework website gives the new structure along with a list of key changes and an example of how to switch our your current checkout with this new version.

0 comments voice your opinion now!
zendframework reorganization extras library svn update checkout



Community Events





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


library release interview api deployment symfony update series introduction opinion framework list install tips zendserver language laravel podcast community package

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