کد مقاله کد نشریه سال انتشار مقاله انگلیسی نسخه تمام متن
433227 1441648 2015 19 صفحه PDF دانلود رایگان
عنوان انگلیسی مقاله ISI
Usage contracts: Offering immediate feedback on violations of structural source-code regularities
ترجمه فارسی عنوان
قراردادهای استفاده: ارائه بازخورد فوری در مورد نقض قوانین ساختاری منبع ساختاری
موضوعات مرتبط
مهندسی و علوم پایه مهندسی کامپیوتر نظریه محاسباتی و ریاضیات
چکیده انگلیسی

Developers often encode design knowledge through structural regularities such as API usage protocols, coding idioms and naming conventions. As these regularities express how the source code should be structured, they provide vital information for developers using or extending that code. Adherence to such regularities tends to deteriorate over time because they are not documented and checked explicitly. This paper introduces uContracts, an internal DSL to codify and verify such regularities as ‘usage contracts’. Our DSL aims at covering most common usage regularities, while still providing a means to express less common ones. Common regularities are identified based on regularities supported by existing approaches to detect bugs or suggest missing code fragments, techniques that mine for structural regularities, as well as on the analysis of an open-source project. We validate our DSL by documenting the structural regularities of an industrial case study, and analyse how useful the information provided by checking these regularities is for the developers of that case study.

ناشر
Database: Elsevier - ScienceDirect (ساینس دایرکت)
Journal: Science of Computer Programming - Volume 105, 1 July 2015, Pages 73–91
نویسندگان
, , ,