Re: Aspect oriented programming in C#

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



Jimbo <jimbo@xxxxxxxxxxxxxxxxxxx> wrote:
> > See http://www.springframework.org then - it's a framework which
> > (amongst its many other benefits) makes AOP pretty simple to use. We
> > use it for logging and translating exceptions at work.
>
> Pretty neat stuff. I might download it and have a little play. Plus it
> is using AOP for the only two scenarios I have come across, namely
> logging and exceptions.

No - it's not Spring that's using it for logging and exceptions - it's
our code which is using it for logging and exceptions, taking advantage
of the Spring support for AOP.

--
Jon Skeet - <skeet@xxxxxxxxx>
http://www.pobox.com/~skeet
If replying to the group, please do not mail me too
.



Relevant Pages

  • Re: Raise of hands (virtually): How many here use AOP?
    ... very nice features of development environments like Eclipse that do NOT ... mis-uses of AOP try to change the GOAL of ... I become reluctant to throw exceptions in places where they might be ... am reduced to the level of a programming novice who determines if code ...
    (comp.lang.java.programmer)
  • Re: Exception handling?
    ... perhaps) issue when going exceptions. ... So for logging, there's, again, nothing to do if ... something about memory, or maybe disk". ... then the end user can fix it without a tech support call. ...
    (microsoft.public.vc.mfc)
  • Re: AOP use cases
    ... > wanted such logging was when debugging very complicated problems, ... I agree that TDD helps a lot. ... It is easy to disable contract checking once the project is said to ... Of course, it is possible to do this without AOP, and the flexibility ...
    (comp.lang.python)
  • Re: Error Handling
    ... exceptions are a reasonable approach to some input errors but that seems to ... indicating if the data is good or not but how does the error message get ... if the error message is "Invalid username and/or password", ... so logging just the username can also ...
    (comp.lang.java.programmer)
  • Re: Exception handling?
    ... perhaps) issue when going exceptions. ... So for logging, there's, again, nothing to do if ... exception-safety guarantees for any code snippet/function. ... but there are cases where in my more elaborate class based logging ...
    (microsoft.public.vc.mfc)