講演抄録/キーワード |
講演名 |
2008-08-01 11:45
CSS記述における不吉な匂いの検出とリファクタリング ○福安直樹(和歌山大) SS2008-26 |
抄録 |
(和) |
ウェブサイトにおいてHTMLの各要素をどのように表示するかを指定する記述としてCSSが広く利用されているが,一般的なプログラミング言語と同様に,変更の繰返しが保守性の低下を招くおそれがある.本稿では,一つのルールセット内で宣言されているプロパティの種類や複数のルールセット間で宣言されているプロパティの類似性に着目して,CSS記述における不吉な匂い(役割の重すぎるルールセット,重複したルールセット)を検出する手法を提案する.また,検出された不吉な匂いに対する三つのリファクタリング手法を提案する.実際に,役割の重すぎるルールセットや重複したルールセットが多く含まれるサイトのCSS記述についてリファクタリングを実施した結果を報告する. |
(英) |
CSS is widely used as a style sheet language to attach style to HTML documents. As well as other programming languages, the repetition of the change would decrease the maintainability of the website design. I propose two methods to detect Bad Smells in CSS descriptions and three refactoring processes to refine these descriptions. These smells are "ruleset with too much role" that is a ruleset which has some properties of different sort and "duplicated ruleset" that is a pair of rulesets of which many properties have same value. I report the result of refactoring CSS descriptions in real site with these smells. |
キーワード |
(和) |
CSS / リファクタリング / 不吉な匂い / ウェブサイトデザイン / / / / |
(英) |
CSS / Refactoring / Bad Smell / Website Design / / / / |
文献情報 |
信学技報, vol. 108, no. 173, SS2008-26, pp. 79-84, 2008年7月. |
資料番号 |
SS2008-26 |
発行日 |
2008-07-24 (SS) |
ISSN |
Print edition: ISSN 0913-5685 Online edition: ISSN 2432-6380 |
著作権に ついて |
技術研究報告に掲載された論文の著作権は電子情報通信学会に帰属します.(許諾番号:10GA0019/12GB0052/13GB0056/17GB0034/18GB0034) |
PDFダウンロード |
SS2008-26 |