Geeks With Blogs
Greg Young Greg.ToString()

I will be giving an AOP presentation to the Atlanta .NET user group the 27th at the Microsoft offices in Alpharetta http://www.atlantadotnet.org/. The following is a description of the presentation.

Joe Engineer has been following established concepts for quite some time, he uses TDD, refactors his code often, and even uses design patterns to help reduce coupling within his code. One day in looking at his code Joe came accross the following code ...
 
public class Customer : MyObjectBase, ISavableObject, IDeletableObject {
     private string m_FirstName;
     private string m_LastName;

     public string FirstName {
          get { return m_FirstName; }
          set { m_FirstName = value; RegisterDirty(this);}
     }
 
     public string LastName {
          get { return m_LastName; }
          set { m_LastName = value; RegisterDirty(this);}
     }
 
     public void Save() {
          MyORMapper.Save(this);
     }
 
     public void Delete() {
          MyORMapper.Delete(this);
     }
}
 
He gives a quick smirk, looks pretty good seems very well factorred ... then he flips over to his order class.
 
public class Order : MyObjectBase, ISavableObject, IDeletableObject {
     private DateTime m_Date;
     private string m_LastName;

     public string Date{
          get { return m_Date; }
          set { m_Date = value; RegisterDirty(this);}
     }
 
     public void Save() {
          MyORMapper.Save(this);
     }
 
     public void Delete() {
          MyORMapper.Delete(this);
     }
}
 
Joe flips back and forth between these classes for about ten minutes, then he starts flipping to the rest of the domain's classes which look oddly similar. "Something ... smells ... There must be some way to refactor this!" ... Joe the loyal XP'er runs to the kitchen to get some snacks to attract team members to come assist him with his quandry.
 
"Where have we gone wrong? In looking at the customer class I thought it was very well factorred but when I look at the customer in conjuction with the order I start to smell alot of funny things".
 
"It seems that we have these little one liners sprinkled through out our entire model, what happens if we need to change how the delete, save or registerdirty works? We have hundreds if not thousands of places doing this; we seem to have fallen prey to copy/paste re-use!"
 
This presentation includes snacks and is a continuation of Joe's discussion with the team which leads participants through a discovery based learning experience ending up with Aspect Oriented Programming.
Posted on Monday, March 20, 2006 12:33 PM | Back to top


Comments on this post: AOP Presentation Mar 27th

# re: AOP Presentation Mar 27th
Requesting Gravatar...
Are your past presentations currently posted somewhere that I can access them?

I would definetely be interested in the AOP presentation if you can tape it.

I guess the manager methodology is not too bad. As our software grows our domain object increases, and there is usually a manager per domain object. Whenever a new manager gets created, DRY principle always comes to mind.

Applying Domain-Driven Design and Patterns sounds like an interesting book, I will definetely check it out. Thanks for the recommendation.
Left by Aaron Feng on Mar 22, 2006 4:30 PM

# re: AOP Presentation Mar 27th
Requesting Gravatar...
here is the Power Point from a more nuts and bolts AOP one (focuses on the dynamic proxy portion and how it works) http://www.atlantacsharp.org/presentations/AOP.ppt

Left by Greg Young on Mar 22, 2006 4:40 PM

# re: AOP Presentation Mar 27th
Requesting Gravatar...


I have just checked this blog and I have found it to be very useful and informative. This blog will certainly help its visitors.Indian share market has been volatile for quite some time now. But now it has started regaining a little ground. Which has helped in rebuiding the confidence of foreign investors in the indian share market.



Intraday Tips || Commodity Tips
Left by Intraday Tips on Sep 07, 2010 5:41 AM

# re: AOP Presentation Mar 27th
Requesting Gravatar...
Presentation Model is a pattern that pulls presentation behavior from a view. It has a centralized place to store state/data and centralized event source which is completely independent to the views used for display.

In real life projects, I prefer using the Presentation Model. This article is going to show the design journey of designing a use case of managing the Customer business entity and shows how the Presentation Model fits into ASP.NET Web site, Windows Form application and WPF application.


Left by Mcx Tips on Sep 08, 2010 12:23 AM

# re: AOP Presentation Mar 27th
Requesting Gravatar...
Hi,
Hi dear, i read this good information and find more interest informations for you. thanks.

thnx a lots 4 sharing...

Option Tips
Left by Option Tips on Sep 20, 2010 6:01 AM

# re: AOP Presentation Mar 27th
Requesting Gravatar...
Wow! This can be a single of the very best blogs I’ve at any time arrive throughout on this subject. Basically Magnificent
Left by Mcx Tips Trial on Oct 27, 2010 1:33 AM

# re: AOP Presentation Mar 27th
Requesting Gravatar...

Forms | Trading School | Payment Gateway | Forum | Chat Rooms | Support |
Main Page About Us Services Research / Reports Free trial Pricing Careers Contact Bullion Metals Gains on U.S. Federal... Stocks Nifty Eyeing All Time Highs... Derivative Senses Above 21K After 2008... Spices Gains On Export Demand ! Derivative Commodity Stocks Delivery Derivative Nifty50 Commodity Live Chart Features / Reports / Analyst Speak Watch The Video Areas of Consulting Stock Tips Stock Futures Nifty Futures Premium Stock Tips Options - Call & Put Commodity tips FOREX Services Delivery Pack Agri Premium Bullion Metal Premium Viva Pick Premium Reports Latest Reports Fantastic Recommendations. Your Stock Tips by SMS are excellent work of PURE TECHNICAL ANALYSIS. From the Free Trial itself I realized that CAPITALVIA is the Best Share Tips provider in India. Hats off to your technical analysis team for providing so Accurate Stock Market Tips.
-K Belvalkar
I subscribed for Nifty Tips and Stock Futures and on the very first day got this fantastic call of Nifty Future (Long @ 4541 TGT 4570/4590/4610) . Really, your Nifty Calls and Stock Futures Tips rocks!! Clients of CapitalVia rule the stock market.
-G Manian
Thanks for giving such fantabulous Commodity Tips in Bullion segment and hope you will give such good tips in future also. Along with Commodity, I've also started taking your Equity Tips services in Intraday Cash, and these calls are also performing well. Thank you CapitalVia.
-Prateek Shah
I'd say Capitalvia rules the commodity market. I subscribed for both MCX NCDEX tips and what I got were superb Commodity Trading calls and full satisfaction. I was astonished when first 10 days of trading with their agri commodity calls did not hit even a single stop loss. Thanks Capitalvia for giving such amazing tips. -Shrimant Ahuja
I am an intraday trader in Stock Cash and Stock Futures. Earlier I was sceptical about stock tips service. But one day I heard about this stock market advisory providing intraday stock tips. I just visited website and filled out stock tips free trial form for intraday trading tips. And what I got was maximum returns ever. -Gaurav Shah
Home | About Us | Services | Reports | Free Trial | Pricing | Forum | | Contact Us | Chat | Site Map
Terms of Use | Privacy Policy | Disclaimer Last Update:
Copyright © 2005-10. All Rights Reserved
Derivatives Commodity Stocks Weekly Nifty 50 Market Reports Special Reports Bullions Weekly Stocks Weekly Derivative Weekly Agri Weekly Stock Tips Stock utures Nifty Futures Premium Stock Tips Options Call & Put Commodity Tips FOREX Services Delivery Pack Agri Premium Bullion Metal Premium Commodity Premium Combo ISO Certification Google Talk KYS Corporate Research House Call Us Mail Us Live Support Free Trial Vision Principle We Believe Goals Success
Left by Jasmith Chriest on Nov 15, 2010 5:56 AM

# re: AOP Presentation Mar 27th
Requesting Gravatar...
scientific studies Alginic acid comes from the cell wall of kelp, it’s a thickener, stabilizer and emulsifier Carrageenan comes from brown algae, used as a stabilizer and emulsifierAgar solidifies like gelatin; used in medical and scientific studies Alginic acid comes from the cell wall of kelp, it’s a thickener, stabilizer and emulsifier Carrageenan comes from brown algae, used as a stabilizer and emulsifier .

Intraday Free Trial
Left by Intraday Tips on Jan 25, 2011 3:02 AM

Your comment:
 (will show your gravatar)


Copyright © Greg Young | Powered by: GeeksWithBlogs.net