講演抄録/キーワード |
講演名 |
2017-01-26 15:20
Javaプログラミング学習のための命名規則検査ツールの改良 ○松本慎平・舩曵信生・栗林 稔・石原信也(岡山大) MSS2016-64 SS2016-43 |
抄録 |
(和) |
Javaは,可搬性,安全性,学習性に優れたプログラミング言語として,多くの大学や専門学校で教育されている.そこでは,学部の授業で文法および初歩的プログラミングの学習を行った後,卒業研究や大学院で実践的なコードの作成を行わせている.後者では,命名規則,コーディングスタイル,潜在的問題で構成されるコーディング規約の順守による可読性の高いコード(リーダブルコード)の作成が,コードの保守性,信頼性を高めるために必須である.本研究グループでは,リーダブルコード作成の支援のために,リーダブルコード学習ツールを提案・実装している.
しかし,その命名規則の検査において,学生が変更できない外部の識別子(クラス,メソッドなど)も検査対象としていること,識別子の識別が不正確であるといった問題がある.
本研究では,識別子の宣言をそれらの記述パターンを表す正規表現を用いて抽出することで,これらの問題点の解消を図る.改良後の命名規則検査ツールを用いて,98個のコードの検査により,動作の正しさを確認した. |
(英) |
Java has been educated in many universities and professional schools due to the portability,safety,and easy learning. There, after studying grammar and basic programming in a college school, students make practical codes to graduate study and graduate school. In the latter, it is essential for maintainabillity and reliabillty to make readable codes by keeping coding conventions that consists of naming rules, coding styles, potential problems. In this laboratory, a learning tool has proposed and implemented to assist to make readable codes.But test of the naming rules has some problems. external identifiers(class, method and so on) which students cannot change cannot avoid including as test object, string pattern of identifiers is not exact. In this paper, I try to solve these problems by getting identifiers declared by using regular expression that express wording pattern of those declarations. As a result of testing 98 codes by using an improved tool for naming rules, this tool was confirmed to run exactly. |
キーワード |
(和) |
Java / プログラミング教育 / リーダブルコード / コーディング規約 / 命名規則 / 正規表現 / / |
(英) |
Java / programming education / Readable Code / coding conventions / naming rules / regular expression / / |
文献情報 |
信学技報, vol. 116, no. 426, SS2016-43, pp. 41-46, 2017年1月. |
資料番号 |
SS2016-43 |
発行日 |
2017-01-19 (MSS, SS) |
ISSN |
Print edition: ISSN 0913-5685 Online edition: ISSN 2432-6380 |
著作権に ついて |
技術研究報告に掲載された論文の著作権は電子情報通信学会に帰属します.(許諾番号:10GA0019/12GB0052/13GB0056/17GB0034/18GB0034) |
PDFダウンロード |
MSS2016-64 SS2016-43 |
|