...
首页> 外文期刊>Information and software technology >Towards assisting developers in API usage by automated recovery of complex temporal patterns
【24h】

Towards assisting developers in API usage by automated recovery of complex temporal patterns

机译:通过自动恢复复杂的时间模式来协助开发人员使用API

获取原文
获取原文并翻译 | 示例
   

获取外文期刊封面封底 >>

       

摘要

Context Despite the many advantages, the use of external libraries through their APIs remains difficult because of the usage patterns and constraints that are hidden or not properly documented. Existing work provides different techniques to recover API usage patterns from client programs in order to help developers use those libraries. However, most of these techniques produce patterns that generally do not involve temporal properties.Objective: In this paper, we discuss the problem of temporal usage patterns recovery and propose an algorithm to solve it. We also discuss how the obtained patterns can be used at different stages of client development.Method: We address the recovery of temporal API usage patterns as an optimization problem and solve it using a genetic-programming algorithm.Results: Our evaluation on different APIs shows that the proposed algorithm allows to derive non-trivial temporal usage that are useful and generalizable to new API clients.Conclusion: Recovering API usage temporal patterns helps client developers to use APIs in an appropriate way. In addition to potentially improve productivity, such patterns also helps preventing errors that result from an incorrect use of the APIs.
机译:上下文尽管有许多优点,但是由于隐藏或未正确记录使用模式和约束,因此仍然难以通过其API使用外部库。现有工作提供了不同的技术来从客户端程序中恢复API使用模式,以帮助开发人员使用这些库。然而,大多数这些技术产生的模式通常不涉及时间属性。目的:在本文中,我们讨论了时间使用模式恢复的问题,并提出了解决该问题的算法。我们还讨论了如何在客户开发的不同阶段使用所获得的模式。方法:我们解决临时API使用模式的恢复问题,并将其作为优化问题,并使用遗传编程算法解决。结果:我们对不同API的评估表明结论:恢复API使用情况时态模式可帮助客户端开发人员以适当的方式使用API​​。除了潜在地提高生产率之外,这种模式还有助于防止由于API使用不正确而导致的错误。

著录项

  • 来源
    《Information and software technology》 |2020年第3期|106213.1-106213.15|共15页
  • 作者

  • 作者单位

    Univ Quebec Rimouski Rimouski PQ Canada;

    Univ Montreal Montreal PQ Canada;

  • 收录信息
  • 原文格式 PDF
  • 正文语种 eng
  • 中图分类
  • 关键词

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号