Re: [PHP-DEV] Aspect Oriented Programming in PHP

2012-08-26 Thread Peter Nguyen
That's why I thnk the extension is superior to all other solutions, because it doesn't require code generation in userland. Also, it will be possible to backtrace to the declaration of the aspects. 2012/8/26 Rasmus Schultz > > > > On Thu, Aug 23, 2012 at 7:36 AM, Peter Ngu

Re: [PHP-DEV] Aspect Oriented Programming in PHP

2012-08-25 Thread Peter Nguyen
FYI, there is already namespace support in the extension, and you can also use type hinting on the pointcuts with interfaces/traits besides class names.

Re: [PHP-DEV] Aspect Oriented Programming in PHP

2012-08-24 Thread Peter Nguyen
Anthony, 2012/8/24 Anthony Ferrara > Peter, > > On Fri, Aug 24, 2012 at 2:36 PM, Peter Nguyen wrote: > >> This is exactly the "problem" that AOP solves. I think the decorator >> pattern is just a solution for the shortcoming of the language itself. > >

Re: [PHP-DEV] Aspect Oriented Programming in PHP

2012-08-24 Thread Peter Nguyen
> >> AOP is the future and a very awesome complement to OOP. It is a shame that >> very few are doing it and I think this would attract some good attention >> to >> PHP after traits (both are horizontal reuse mechanisms). >> >> On Fri, Aug 24, 2012 at 2:01 AM,

Re: [PHP-DEV] Aspect Oriented Programming in PHP

2012-08-24 Thread Peter Nguyen
s executed... Another option is not to use wildcards and define the joint point explicitly. 2012/8/24 Sebastian Krebs > 2012/8/24 Peter Nguyen > > > Your argument is a general issue when refactoring code. Whenever you > > change the name of a method/class, you need to change it in all

Re: [PHP-DEV] Aspect Oriented Programming in PHP

2012-08-23 Thread Peter Nguyen
a on pastebin ;) But I have no idea how it could look > like > > Regards, > Sebastian > > > Am 23.08.2012 16:36, schrieb Peter Nguyen: > > Hi, >> >> AOP >> (http://en.wikipedia.org/wiki/**Aspect-oriented_programming<http://en.wikipedia.org/wiki

Re: [PHP-DEV] Aspect Oriented Programming in PHP

2012-08-23 Thread Peter Nguyen
/8/23 William Betts > On Thu, Aug 23, 2012 at 7:36 AM, Peter Nguyen wrote: > > Hi, > > > > AOP (http://en.wikipedia.org/wiki/Aspect-oriented_programming) when used > > correctly, can make your application really modular. I've seen several > > implementat

[PHP-DEV] Aspect Oriented Programming in PHP

2012-08-23 Thread Peter Nguyen
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