Def­i­n­i­tion:

A Cross-Cutting Con­cern is a con­cern your appli­ca­tion needs to address that is unre­lated to your application’s prob­lem domain, and ‘cuts across’ other con­cerns. Typ­i­cal exam­ples include:

  • log­ging
  • per­sis­tence
  • secu­rity
  • error han­dling

They are usu­ally dif­fi­cult to decom­pose from the rest of the sys­tem and result in tan­gled code. Address­ing these cross-cutting con­cerns will add a lot of boil­er­plate code into your appli­ca­tion, increas­ing both the size and com­plex­ity of your code.

To ease the pain of deal­ing with cross-cutting con­cerns in our appli­ca­tions, Aspect Ori­ented Pro­gram­ming (AOP) was born and frame­works such as Post­Sharp (which I’ve blogged about already) pro­vides an effec­tive way of intro­duc­ing AOP into .Net applications.

Share

Leave a Reply