首页> 外文会议>IEEE International Workshop on Managing Technical Debt >Are the Methods in Your Data Access Objects (DAOs) in the Right Place? A Preliminary Study
【24h】

Are the Methods in Your Data Access Objects (DAOs) in the Right Place? A Preliminary Study

机译:是正确的数据访问对象(DAOS)中的方法吗?初步研究

获取原文

摘要

Isolating code that deals with system infrastructure from code that deals with domain rules is a good practice when developing applications. Code that deals with the database, for example, is often isolated in classes following a Data Access Object (DAO) pattern. Developers often create a DAO for each domain entity in the system. However, as some pieces of code deal with more than one entity/table, developers need to decide in which DAO they will place the code, and sometimes choose a less intuitive location. In this paper, we present a heuristic to identify methods that may have been written in an ambiguous place. To validate the idea, we tested it on three industrial projects from a Brazilian company. The heuristic selected, on average, 13% to 18% of the methods in DAOs. After evaluating such methods, we concluded that the heuristic was correct in 50% to 75% of cases. Therefore, we believe that the heuristic can indicate possible technical debt, where the developers may inspect and possibly refactor.
机译:隔离处理从处理域规则的代码处理系统基础结构的代码是开发应用程序时的良好实践。例如,处理数据库的代码通常在数据访问对象(DAO)模式之后的类中常见。开发人员经常为系统中的每个域实体创建DAO。但是,由于一些与一个实体/表格的代码交易,开发人员需要决定他们将放置代码的DAO,有时选择一个不太直观的位置。在本文中,我们提出了一个启发式,以确定可能被写在暧昧地方的方法。为了验证这个想法,我们在巴西公司的三个工业项目中测试了它。 Seuristic选择的是DAOS中的方法的13%至18%。在评估这些方法后,我们得出结论,启发式在50%至75%的情况下是正确的。因此,我们认为启发式可以表明可能的技术债务,开发商可以检查和可能重构。

著录项

相似文献

  • 外文文献
  • 中文文献
  • 专利
获取原文

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号