Sunday, March 1, 2009

Design patterns via AOP

Object oriented programming has given this industry numerous gifts and is continuing to prosper. It has been responsible for new methodologies, languages, frameworks etc. As for AOP (Aspect-Oriented Programming) which is a different programming paradigm, never seen as a competitor/substitute to OOP but rather a complement to enhance SOC (Separation of Concerns) experience.

Design patterns have benefited most from OOP and are continuing to grow as new paradigms arise and programming methodologies are born. Advent of AOP has also worked in this direction, even a few patterns can be implemented by directly using AOP constructs and implementation/design of others can vary greatly from their OOP counterparts. And of course there are new ones which lie in this category only.

I did not get a chance to work much in this direction but have come across some good articles which inspired me to appreciate the beauty of a new paradigm/methodology. One of them is a good article by Nicholas Lesiecki.
Dynamic languages come with their own designs and I once went through a very elegant decorator implemented via Ruby. Similarly Functional languages that complement OOP will surely enhance the pattern experience. There is too much ground to cover in this regard, too many directions too go and the catch here is elegance through novelty (atleast for me).

No comments:

Post a Comment