By Peter Bell

Domain Driven Design and AOP

Interesting recording on using AOP to improve domain driven design.

AOP for Inter-Application Variation!

When people are getting started with Aspect Oriented Programming (AOP), it can take a while to get beyond the text book examples of cross cutting concerns like logging and security.

Today, Dave Ross made some very interesting comments on the CFCDev list based on a suggestion by Adam Haskell which opened my eyes to a whole new family of use cases for leveraging AOP in application design . . .

[More]

Implementing AOP in CF using mixins

Building an "in-class decorator"

Usually the most profound ideas are sleepers. They don’t sound like much when you first hear about them. Sean made a comment about methods during his Duck Typing presentation last week that I think we may still be finding new uses for this time next year.

He said that in ColdFusion, methods are "first order citizens". What does this mean? It means you can perform operations on them in the same way you can perform operations on attributes (although the permissible operations will be constrained by the value type – I doubt you could multiply two methods!).

What can we use this for? Ask me this time next year, but one example of the breadth of uses for this would be to implement Aspect Oriented Programming using an in-class decorator.

[More]

How ColdSpring Implements AOP using a Decorator

Chris Scott has done an amazing job of adding Aspect Oriented Programming features to ColdSpring.

During the AOP BOF session last week at CF United, he explained how he’d implemented AOP using a decorator. It’s a great example of a practical use of the design pattern and may be a good primer for anyone who wants to consider other ways of implementing AOP in CF.

[More]

BlogCFC was created by Raymond Camden. This blog is running version 5.005.