講演抄録/キーワード |
講演名 |
2022-03-08 11:35
Scratchにおける自動リファクタリングを用いた可読性向上の試み ○木内正浩・槇原絵里奈・若松玲依・小野景子(同志社大) SS2021-61 |
抄録 |
(和) |
Scratchは自由度が高くエラーメッセージが出ないため,初学者へ導入する敷居は低いが,プログラムの品質が低下しやすい.品質の低いプログラムは,理解や修正,再利用が困難であり,効率的な学習を妨げている.そこで本研究では,プログラム全体の可視性に焦点を当て,プログラムの可読性を改善する手法を提案する.具体的には,イベントハンドラの役割を持つハットブロックに着目し,コードの並び替えやデッドコードの削除を行うことで,プログラム全体の可視性を改善する.本稿では,自動リファクタリング手法を試作し,有効性を検証した.検証の結果,提案手法はプログラムの可読性を向上させることができ,学習者の支援に有効である可能性を示した. |
(英) |
Scratch has a high degree of freedom and does not produce error messages, making it easy to introduce to beginners, but the quality of the program is likely to deteriorate. Low quality code are difficult to comprehend, modify, and reuse, thus it becomes a factor to hinder effective learning. Therefore, in this study, we focus on the visibility of the entire program and propose a method to improve the readability of the program. Specifically, we focus on hat blocks that have the role of event handlers, and improve the visibility of the entire program by reordering the code blocks and removing dead code. In this paper, we developed a prototype of an automatic refactoring method and verified its effectiveness. The verification results show that the proposed method can improve the readability of the program and indicates the possibility that it supports students' programming comprehension. |
キーワード |
(和) |
プログラミング教育 / ビジュアルプログラミング / Scratch / リファクタリング / 可読性 / / / |
(英) |
Programming education / Visual programming / Scratch / Refactoring / Readability / / / |
文献情報 |
信学技報, vol. 121, no. 416, SS2021-61, pp. 115-120, 2022年3月. |
資料番号 |
SS2021-61 |
発行日 |
2022-02-28 (SS) |
ISSN |
Online edition: ISSN 2432-6380 |
著作権に ついて |
技術研究報告に掲載された論文の著作権は電子情報通信学会に帰属します.(許諾番号:10GA0019/12GB0052/13GB0056/17GB0034/18GB0034) |
査読に ついて |
本技術報告は査読を経ていない技術報告であり,推敲を加えられていずれかの場に発表されることがあります. |
PDFダウンロード |
SS2021-61 |