Christophe Geers' Blog - PostSharp
PostSharp is an aspect-oriented programming (AOP) framework that allows you to encapsulate repeating code patterns as .NET attributes. These attributes are referred to as aspects. Using the power of attributes you can apply them to multiple parts of your code.
This post demonstrates the value of these aspects by encapsulating a couple of common cross-cutting concerns, such as:
- Tracing Method Execution
- Logging
- Exception Handling
Let’s get started…
- Introduction
- Getting Started
- Demo Application
- Tracing Method Execution
- Logging
- Exception Handling
- PostSharp Calculator
...
..."
I thought this article a great code based introduction to PostSharp. I really like the idea behind aspect orientated programing (AOP) and how it can help me keep my code clean, help with clean separation of concerns and yet add essential, yet often overlooked, capabilities (like logging and tracing, etc). But the "magic" of AOP is also a little scary too [insert "a technology sufficiently advanced will appear to be magic" quote here]
No comments:
Post a Comment
NOTE: Anonymous Commenting has been turned off for a while... The comment spammers are just killing me...
ALL comments are moderated. I will review every comment before it will appear on the blog.
Your comment WILL NOT APPEAR UNTIL I approve it. This may take some hours...
I reserve, and will use, the right to not approve ANY comment for ANY reason. I will not usually, but if it's off topic, spam (or even close to spam-like), inflammatory, mean, etc, etc, well... then...
Please see my comment policy for more information if you are interested.
Thanks,
Greg
PS. I am proactively moderating comments. Your comment WILL NOT APPEAR UNTIL I approve it. This may take some hours...