Re: Aspect Oriented Programming in PHP

From: Date: Fri, 24 Aug 2012 05:15:27 +0000
Subject: Re: Aspect Oriented Programming in PHP
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-62440@lists.php.net to get a copy of this message
On 23/08/12 16:36, Peter Nguyen wrote:
Hi, Hi,
AOP (http://en.wikipedia.org/wiki/Aspect-oriented_programming) when used correctly, can make your application really modular. I've seen several implementations but they all require compiling of code beforehand. There is however a PECL extension now (https://github.com/AOP-PHP/AOP) that enable AOP in PHP directly. I was wondering if there are any interests/possibility to include AOP into the PHP core? +1! AOP is very useful when making some safeness or security tools, like tests automation (with contracts for making Design-by-Contract or Contract Driven Testing). It avoids to instrument the code each time, which is a drawn-out/laborious task.
I would really like to see this extension in the core. I'm sure that it will be useful for so many people and so many tools (each time you need cross-logic in your application architecture actually). Best regards. -- Ivan Enderlin Developer of Hoa http://hoa.42/ or http://hoa-project.net/ PhD. student at DISC/Femto-ST (Vesontio) and INRIA (Cassis) http://disc.univ-fcomte.fr/ and http://www.inria.fr/ Member of HTML and WebApps Working Group of W3C http://w3.org/

« previous php.internals (#62440) next »