WEKO3
アイテム
プログラム文の並べ替えに基づくソースコードの可読性向上の試み
https://ipsj.ixsq.nii.ac.jp/records/98513
https://ipsj.ixsq.nii.ac.jp/records/985133261db26-a90d-48c3-b2e4-5ab6861116ab
名前 / ファイル | ライセンス | アクション |
---|---|---|
![]() |
Copyright (c) 2014 by the Information Processing Society of Japan
|
|
オープンアクセス |
Item type | Journal(1) | |||||||
---|---|---|---|---|---|---|---|---|
公開日 | 2014-02-15 | |||||||
タイトル | ||||||||
タイトル | プログラム文の並べ替えに基づくソースコードの可読性向上の試み | |||||||
タイトル | ||||||||
言語 | en | |||||||
タイトル | An Approach to Improving Readability of Source Code Based on Reordering Program Statements | |||||||
言語 | ||||||||
言語 | jpn | |||||||
キーワード | ||||||||
主題Scheme | Other | |||||||
主題 | [特集:ソフトウェア工学] プログラム理解,ソースコード解析,リファクタリング | |||||||
資源タイプ | ||||||||
資源タイプ識別子 | http://purl.org/coar/resource_type/c_6501 | |||||||
資源タイプ | journal article | |||||||
著者所属 | ||||||||
大阪大学大学院情報科学研究科 | ||||||||
著者所属 | ||||||||
大阪大学大学院情報科学研究科 | ||||||||
著者所属 | ||||||||
大阪大学大学院情報科学研究科 | ||||||||
著者所属(英) | ||||||||
en | ||||||||
Graduate School of Information Science and Technology, Osaka University | ||||||||
著者所属(英) | ||||||||
en | ||||||||
Graduate School of Information Science and Technology, Osaka University | ||||||||
著者所属(英) | ||||||||
en | ||||||||
Graduate School of Information Science and Technology, Osaka University | ||||||||
著者名 |
佐々木, 唯
× 佐々木, 唯
|
|||||||
著者名(英) |
Yui, Sasaki
× Yui, Sasaki
|
|||||||
論文抄録 | ||||||||
内容記述タイプ | Other | |||||||
内容記述 | ソフトウェア保守を行うにあたって,最も時間的コストの高い作業はソースコードを読み理解することである.そのため,ソースコードの可読性を向上させることで,ソフトウェアの保守作業全体のコストを削減できる.既存研究として,ソースコードを読んで理解しようとする際,変数が定義されてから参照されるまでの距離が離れていると理解するためのコストが増大することが報告されている.したがって,文の並びはソースコードの可読性に影響を及ぼすと考えられる.本研究では,変数の定義と参照の間の距離に着目して,ソースコードの可読性を向上させるためのプログラム文並べ替え手法を提案する.提案手法をオープンソースソフトウェアに適用し,並べ替えの行われたメソッドについて被験者からの評価を得たところ,並べ替えの行われたメソッドは可読性が向上するという結果が得られた. | |||||||
論文抄録(英) | ||||||||
内容記述タイプ | Other | |||||||
内容記述 | Understanding program source code is the most time-consuming task in software maintenance. If readability of source code becomes better, we spend less time to understand it. That means we can conduct more efficent software maintenance on source code whose readability is better. Previous research efforts reported that, if a program statement referencing a variable is far from another statement defining the variable, understanding the function that they implement becomes more time-consuming task. Those results indicate that the order of program statements has an impact on readability of source code. In this paper, we propose a technique to reorder program statements for improving readability of source code. The proposed method uses distances between definitions and references of variables in source code to find reordering opportunities. We have conducted an experiment on Java open source software with 44 subjects, and confirmed that most of reordered methods had better readability than its original ones. | |||||||
書誌レコードID | ||||||||
収録物識別子タイプ | NCID | |||||||
収録物識別子 | AN00116647 | |||||||
書誌情報 |
情報処理学会論文誌 巻 55, 号 2, p. 939-946, 発行日 2014-02-15 |
|||||||
ISSN | ||||||||
収録物識別子タイプ | ISSN | |||||||
収録物識別子 | 1882-7764 |