I understand the principles but i have a hard time seeing where the practical applications are outside of a few. Please enlighten me 😉
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Ask any support person: logging is not a good application of AOP. They don’t care what method is being called inside the app. They care about the significant actions the app is performing and need that information to be presented in a way they understand. To create decent logs, you have to treat logging as another user-interface to the app and design it accordingly.
It would be more accurate to say that AOP can be used to implement tracing.
And I’m not convinced it’s useful for transaction management either. I’ve found plain OO delegation cleanly separates transaction management and business logic.
Still, good question! I’ve found that arguments for AOP fall into two camps: