Page 1 of 1

Aspect Oriented Programming

Posted: Wed May 03, 2006 4:16 pm
by exine
Hi!

I was wondering if there are any production php sites which are using aspect oriented php. If so, how is it performing in terms of resources, security and maintenance? Oh and also, which project are you using?

Cheers,

Posted: Wed May 03, 2006 6:24 pm
by Ollie Saunders
Well this is new.
What is aspect orientated programming?

Has it got anything in common with event or data driven methodologies?

Posted: Wed May 03, 2006 10:36 pm
by Christopher
AOP on its simplest level is a way to deal with what are called Cross-Cutting Concerns -- meaning thing that occur across an application, but not in the same organization as the app hierarchy. Access Control and Logging are often given as example of this.

For AOP, you usually need some language level support for this, such as has been done in JBoss. PHP projects like AOPHP add additional runtime software. If you do some searches you can find information about aspects, pointcuts, weaving, etc. that are the building blocks of AOP.

Dependency Injection is a different way to solve some of these problems, just at the object level rather than runtime level. DI is more doable in PHP. Neither can really be implemented in PHP (currently) in any real fashion without add-ons or extreme comprimises.

Posted: Thu May 04, 2006 3:05 am
by Maugrim_The_Reaper
php|architect ran a good article on AOP back a while ago. Not sure if it was the April or March issue...

Posted: Thu May 04, 2006 9:18 am
by exine
Thanks for the replies, I'll see if I can get hold of that article :)

Posted: Thu May 04, 2006 12:15 pm
by Christopher
exine wrote:Thanks for the replies, I'll see if I can get hold of that article :)
If you find some good information and can give us a report on the state-of-the-art of AOP in PHP -- that would be very informative. :)