0

If I could mary a concept it would be AOP this week!!! I LOVE YOU AOP!!!!

AOP

AOP is the coolest thing ever, especially for a knuckle head like me.

I know I am repeating myself, but Big Dave Shuck pointed out the new code features of InstantSpot, and I am sooooooo excited about AOP that I had to post again about why AOP saves lives.

I dislike adding new code to old code if the new stuff has nothing to do conceptually with the old stuff.

A basic problem which I will never face again is: where to put security, and by security I mean type checking and validation.

I will put it in my "aspects" folder and I will call it Validation.cfc. Here is a better example than a couple of days ago:

Lovely Little form:

And here is the simple controller:

Now the ask the UserService to update:

BUT WAIT!!!!! NOT NOW!!!! LETS MethodIntercept this method!!!!!!!

The lovely ColdSpring super easy XML document commented:

The Great MethodInterceptor:

So now if my application asks to "updateUser" my controller code "thinks" its asking the UserService.cfc to do it, but its not. ColdSpring is the one "doing it". It has:

  1. proxyed (correct word?) / basically mimicking the UserService
  2. checked some things
  3. decided to return errors if there were any or...
  4. call the proceed() function and let the original request finish and return it.

That FREAKS ME OUT!!!!! I LOVE IT!!!!!

tags:
AOP
 
John, not sure how you got to the BEA codeshare from that link I posted! :)

The project I was referring to is a ColdFusion project by Ryan Everhart and Robert Froehling from http://www.everfro.com. Their codeShare project is http://codeshare.everfro.com.

You will be hearing more about codeShare soon... and not from us. Wait, I have said too much.



 
posted 666 days ago
Add Comment Reply to: this comment OR this thread
 
New User said:
 
I’m not sure either. but i sill feel bad about that guys problem.

Thanks, Bid Dave Shuck, just signed up.

updatePost will = 'true'

Again, InstantSpot ROCKS Im posting just exactly why in a few.
 
posted 666 days ago
Add Comment Reply to: this comment OR this thread
 
 
We are glad you are digging it man! We do too.
 
posted 666 days ago
Add Comment Reply to: this comment OR this thread
 
New User said:
 
THANKS for the codeShare hook up and feature intagration. ROCKS!
 
posted 666 days ago
Add Comment Reply to: this comment OR this thread
 
New User said:
 
Also..... SAY MORE ABOUT CODE SHARE!
 
posted 666 days ago
Add Comment Reply to: this comment OR this thread
 
Ryan said:
 
John,
Nice use of codeShare! It looks really good!

Ryan
 
posted 666 days ago
Add Comment Reply to: this comment OR this thread
 
New User said:
 
You guys rock. thanks soMucho for such a cool site.

ColdFusion is Great. I love it.

Just a wonderful community.
 
posted 666 days ago
Add Comment Reply to: this comment OR this thread
 
 
Hey! nice codesharing there John!!!
 
posted 666 days ago
Add Comment Reply to: this comment OR this thread
 
New User said:
 
CodeSharing is fun. AGAIN thanks for YOUR HARD WORK!
 
posted 666 days ago
Add Comment Reply to: this comment OR this thread
 

Search