Aspect Oriented Programming

Not for 'how-to' coding questions but PHP theory instead, this forum is here for those of us who wish to learn about design aspects of programming with PHP.

Moderator: General Moderators

Post Reply
exine
Forum Newbie
Posts: 4
Joined: Wed May 03, 2006 4:11 pm

Aspect Oriented Programming

Post 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,
User avatar
Ollie Saunders
DevNet Master
Posts: 3179
Joined: Tue May 24, 2005 6:01 pm
Location: UK

Post by Ollie Saunders »

Well this is new.
What is aspect orientated programming?

Has it got anything in common with event or data driven methodologies?
User avatar
Christopher
Site Administrator
Posts: 13596
Joined: Wed Aug 25, 2004 7:54 pm
Location: New York, NY, US

Post 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.
(#10850)
User avatar
Maugrim_The_Reaper
DevNet Master
Posts: 2704
Joined: Tue Nov 02, 2004 5:43 am
Location: Ireland

Post 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...
exine
Forum Newbie
Posts: 4
Joined: Wed May 03, 2006 4:11 pm

Post by exine »

Thanks for the replies, I'll see if I can get hold of that article :)
User avatar
Christopher
Site Administrator
Posts: 13596
Joined: Wed Aug 25, 2004 7:54 pm
Location: New York, NY, US

Post 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. :)
(#10850)
Post Reply