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

Stubbles Blog:
On annotations and logic
January 28, 2011 @ 12:29:40

On the Stubbles blog there's a recent post that talks about a feature they introduced into the framework - annotations - with high hopes it would give them more flexibility in how things worked. As Frank Keline says, though, "it's not such a good idea at all".

The most simplest reason for this is the idea that annotations are markup. They mark (or, to keep the notion, annotate) code as being special or to be treated in some special kind of way, depending on the scenario where the code is used in. [...] From a design point of view this makes it clear why annotations should not contain logic. If annotations contain parts of such logic, it becomes splitted and possibly cluttered throughout different classes.

He goes on to talk about a second reason why he doesn't think they should be considered first-class in an application - it doesn't promote code reuse. For example, if you define them on a method, there's no way to use that method without them. He puts this into the perspective of the Stubbles framework that currently uses them and how he's changed the logic to live in special classes instead. He considers other changes like places annotations can be used and having different annotation classes.

0 comments voice your opinion now!
annotation logic framework stubbles opinion


Stubbles Blog:
Stubbles 0.5.0 released
February 01, 2008 @ 13:37:00

Frank Kleine has announced on the Stubbles blog that the latest version of the framework, Stubbles 0.5.0 has been released.

A last day of a month - time to release a new Stubbles version. The release does not feature that much new features, we focused mainly on infrastructure and code quality improvements. The most important change of course is the change of the package separator.

Instead of the dots they've gone with the more standard double-colon that PHP already uses. There were also code quality improvements and a move away from SimpleTest out to the popular PHPUnit unit testing package.

You can download this new package from the Stubbles project site.

0 comments voice your opinion now!
stubbles framework release simpletest phpunit package seperator


Stubbles Blog:
Exception is an Inheritance Nazi
August 07, 2007 @ 09:21:00

Frank Kleine has voiced his disapproval with what he calls the "Inheritance Nazi" exception handling PHP has natively.

The built-in Exception class in PHP is total crap. It is an inheritance nazi preventing you from doing useful stuff in your own exception classes. Whoever made its get*() methods final and the trace property private did not thought any second about how exceptions may be used or that people need to implement their own stack trace handling.

The reason for the rant is due to a project he's currently working at where he cannot overload the stack trace of an exception instance then throw the exception. This forces him to create his own exception handling, pointless when the PHP one should be able to handle what he wants.

Suggestions/thoughts in the comments sympathize with him and suggest an alternate exception method - an interface that would allow for more customization.

For more information on the exception handling PHP has, check out the manual page for it.

0 comments voice your opinion now!
stubbles exception handling class custom throw inheritance stubbles exception handling class custom throw inheritance


Stubbles Blog:
Stubbles 0.2.0 released
July 04, 2007 @ 10:32:00

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.

0 comments voice your opinion now!
stubbles framework mvc jsonrpc datespan url changelog stubbles framework mvc jsonrpc datespan url changelog


Stubbles Blog:
Stubbles 0.1.0 released
April 30, 2007 @ 13:07:00

The Stubbles framework team has released the latest version of their framework today - Stubbles 0.1.0:

The Stubbles team is proud to announce the release of Stubbles 0.1.0. This release is a first alpha version and contains the basic features of Stubbles like the Extended Reflection API, XML handling with XMLStreamWriter and XMLSerializer, Logging, Event handling, support for filtering and validating user input and session handling. The release additionally contains parts of packages that we announced to be in the next milestone 0.2.0.

The Stubbles framework is one that seeks to "combine your favorite features from other programming languages and frameworks" and is flexible enough to allow for easy interfacing with other frameworks/components like PEAR or the Zend Framework.

0 comments voice your opinion now!
stubbles version release reflection xml log event filtering session stubbles version release reflection xml log event filtering session


Terry Chay's Blog:
serialization without pity
March 21, 2007 @ 12:02:00

In response to a post from the Stubbles blog, Terry Chay has posted some of his thoughts about the serialization solution presented in the other post.

Frank Kleine writes a PHP 5 framework called Stubbles. I have a long-standing view about frameworks that hasn't changed one bit. But instead of arguing about the Sysaphean task Frank is engaging in, I'll show what my approach is to one small component (while being a bit jealous that he can actually develop in PHP 5).

Frank's solution involves storing the objects in the session, serializing them first. The issue comes up when the class(es) the object needs aren't included into the page. Terry offers a different sort of solution - one also using __autoload, but using it combined with unserialize_callback_func.

Terry compares this with Frank's approach and notes that his method "closes off" the system from the very PHP functions that could make his life simpler (making a separate handling system). He also includes a method for doing the same when all you know is the class file's name (non-PEAR format).

0 comments voice your opinion now!
serialization pity stubbles framework article response autoload unserializecallbackfunc serialization pity stubbles framework article response autoload unserializecallbackfunc


PHP-Tools Blog:
Stubbles Blog is live!
February 19, 2007 @ 07:04:37

On the PHP-Tools blog, there's a noteStubbles.

Stubbles is a new framework for PHP 5.2 which focuses on clean OO design, the use of patterns and ports some features from the langauges commonly referred to "enterprise languages" to PHP. If you are looking for new ways to develop your PHP applications, you should definitely take a look at the stubReflection package, which brings Java Annotations to PHP. The next issue of the German PHP Magazin will feature an article, that shows how to use this package.

The blog has been set up to give the community a window into the framework abd will include things like tutorials, thoughts on the framework and its direction, and maybe a little general PHP talk to balance things out. Check out the framework and the blog at stubbles.org.

0 comments voice your opinion now!
php5 framework stubbles project blog tutorial thought rant php5 framework stubbles project blog tutorial thought rant



Community Events





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


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

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