Friday, October 01, 2004

Update your app while in prod with reflection

Microsoft calls it Provider Design pattern (part I and part II), GoF called it Abstract Factory Design Pattern, and Roy Osherove called it Plug-In framework (creating and extending). Myself, I just love the idea of decoupling interface and implementation. Patterns and practices group released beautiful EDRA blown with cool stuff including Aspect Oriented Programming (AOP) for executing cross-cutting logic on incoming/outgoing requests. But let me start from something modest first, namely, decoupling interface from implementation and calling it with reflection with tinny trick for performance gain. Go ahead and watch the video (avail also in hebrew).


At October 3, 2004 at 8:26 PM, Anonymous Anonymous said...

Wahoo! I remember the days we tried to implement a Plug-in solution via C ( and later Delphi .. ) . The outcome was a bunch of young fellows musing how lucky we are to still be in regular army service ( otherwise the boss would fire us so fast... ) .

This is a great very usable pattern ( data layer, security infrastructure, etc. ) .

One thing though, regarding the EDRA by the PNP group. If I'm not mistaken, Anders Hejlsberg has a whiteboard video in MSDN TV where he doesn't seem to be excited about AOP & .NET .
I always thought that AOP alike actions can be implementing using custom Attributes combined with reflection.

Certainly, keep on doing those video's. it kicks.



Post a Comment

<< Home