如何将AOP引入生产性软件开发中? [英] How to introduce AOP into productive software development?

查看:82
本文介绍了如何将AOP引入生产性软件开发中?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我知道这个问题以前曾被问过,但这是一年半以前的,尽管我认为可能是重新提出问题的时候了.我也认识到它可能被认为是主观的,但我猜想有/反对AOP的客观原因.

I know this question has been asked before, but this was one and a half years ago, though I thought it might be the time for a re-questioning. I also recognized it might be seen as subjective, but I guess there are objective reasons for/against AOP.

我会对谁在软件开发中使用AOP ,以及为什么为什么不使用它感兴趣.

I would be interested in who is using AOP in software development and also why or why not using it.

我认为AOP是非常强大的范例,它可以使许多开发任务变得更容易.但是,当涉及到在现实世界项目中使用AOP时,我的经验是许多决策者几乎不愿意接受它. 您如何设法将AOP引入项目中?

I see AOP as a very strong paradigm which can make a lot of development tasks easier. But when it comes to using AOP in real world projects I have made the experience that many decision makers are barely open to it. How did you manage to introduce AOP into your projects?

2008年8月以来的常见问题:您是否在生产软件中使用AOP(面向方面​​的编程)?

Previously asked question from August 2008: Do you use AOP (Aspect Oriented Programming) in production software?

推荐答案

我们的经理听取了他们的架构团队的意见.

Our managers listen to their architecture team.

我们告诉他们,AOP是实现交叉关注功能的唯一解决方案:

We tell them that AOP is the only solution to implement cross-concern features:

  • 首先以合理的价格
  • 在不弄乱开发团队编写的功能代码的情况下
  • 现在和将来都不会忘记(与向数千种方法手动添加try-catch相比)
  • 无需培训或控制开发人员的工作(有些很棒,有些则是一团糟)
  • 具有良好的可维护性

是的,我们的项目是20名开发人员,历时数年,因此有大量的代码.这是唯一的解决方案.

True, our project is 20 developers and lasted for several years, so there is a huge mass of code. It's the only solution.

我相信关键是仅将其用于跨领域关注. 如果可以使用常规代码进行编码,请这样做.但是,如果太大,那么AOP就是有吸引力且合理的.未能限制AOP会导致上百个AOP小代码,这很难理解.

I believe the key is to use it only for cross-cutting concerns. If you can code it using regular code, do so. But if it is way too big, then AOP is attractive and justified. Failing to limit AOP would lead to hundred AOP little codes, that would be very hard to understand.

是的,我们的软件是生产软件.数以百计的诊所都依赖它!

And yes, our software is production-software. Hundreds of clinics depend on it!

这篇关于如何将AOP引入生产性软件开发中?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆