Paster: A Copy-and-Paste Programming Assistant for Adapting API Example Code

碩士 === 國立成功大學 === 電腦與通信工程研究所 === 101 === When programming with application programming interface (API), developers often use API code example to reduce the implementation effort. In practice, opportunistic programming that emphasizes speed and ease of development over code robustness and maintainabi...

Full description

Bibliographic Details
Main Authors: Hsing-YaWu, 吳興亞
Other Authors: Hewijin Christine Jiau
Format: Others
Language:en_US
Published: 2013
Online Access:http://ndltd.ncl.edu.tw/handle/05090426395966967620
id ndltd-TW-101NCKU5652038
record_format oai_dc
spelling ndltd-TW-101NCKU56520382016-03-18T04:42:17Z http://ndltd.ncl.edu.tw/handle/05090426395966967620 Paster: A Copy-and-Paste Programming Assistant for Adapting API Example Code Paster: 一個用來輔助以複製貼上整合應用程式介面範例程式碼的程式撰寫工具 Hsing-YaWu 吳興亞 碩士 國立成功大學 電腦與通信工程研究所 101 When programming with application programming interface (API), developers often use API code example to reduce the implementation effort. In practice, opportunistic programming that emphasizes speed and ease of development over code robustness and maintainability is widely used to reuse API code example. However, developers often adapt the API example code opportunistically by pasting the example code into developing code and modify the pasted code tediously without knowing the concerns of the adaptation. If the concerns are ignored, it is easy to introduce hidden bug and will lead developers to spend more effort on understanding the code example. In this thesis, I propose a tool, Paster, to handle the concerns when the API example code is being integrated into developing code. An experiment is conducted with three adaptations of representative code examples. The results show that Paster can indicate all defined adaptation problems with only highlighting 15.6%-23.1% of the pasted codes. Up to 61.9%-77.8% of the highlighted codes indeed need modifications which are suggested by Paster. These results show that Paster can reduce the effort when developers adapt API example code by copy-and-paste. Hewijin Christine Jiau 焦惠津 2013 學位論文 ; thesis 54 en_US
collection NDLTD
language en_US
format Others
sources NDLTD
description 碩士 === 國立成功大學 === 電腦與通信工程研究所 === 101 === When programming with application programming interface (API), developers often use API code example to reduce the implementation effort. In practice, opportunistic programming that emphasizes speed and ease of development over code robustness and maintainability is widely used to reuse API code example. However, developers often adapt the API example code opportunistically by pasting the example code into developing code and modify the pasted code tediously without knowing the concerns of the adaptation. If the concerns are ignored, it is easy to introduce hidden bug and will lead developers to spend more effort on understanding the code example. In this thesis, I propose a tool, Paster, to handle the concerns when the API example code is being integrated into developing code. An experiment is conducted with three adaptations of representative code examples. The results show that Paster can indicate all defined adaptation problems with only highlighting 15.6%-23.1% of the pasted codes. Up to 61.9%-77.8% of the highlighted codes indeed need modifications which are suggested by Paster. These results show that Paster can reduce the effort when developers adapt API example code by copy-and-paste.
author2 Hewijin Christine Jiau
author_facet Hewijin Christine Jiau
Hsing-YaWu
吳興亞
author Hsing-YaWu
吳興亞
spellingShingle Hsing-YaWu
吳興亞
Paster: A Copy-and-Paste Programming Assistant for Adapting API Example Code
author_sort Hsing-YaWu
title Paster: A Copy-and-Paste Programming Assistant for Adapting API Example Code
title_short Paster: A Copy-and-Paste Programming Assistant for Adapting API Example Code
title_full Paster: A Copy-and-Paste Programming Assistant for Adapting API Example Code
title_fullStr Paster: A Copy-and-Paste Programming Assistant for Adapting API Example Code
title_full_unstemmed Paster: A Copy-and-Paste Programming Assistant for Adapting API Example Code
title_sort paster: a copy-and-paste programming assistant for adapting api example code
publishDate 2013
url http://ndltd.ncl.edu.tw/handle/05090426395966967620
work_keys_str_mv AT hsingyawu pasteracopyandpasteprogrammingassistantforadaptingapiexamplecode
AT wúxìngyà pasteracopyandpasteprogrammingassistantforadaptingapiexamplecode
AT hsingyawu pasteryīgèyòngláifǔzhùyǐfùzhìtiēshàngzhěnghéyīngyòngchéngshìjièmiànfànlìchéngshìmǎdechéngshìzhuànxiěgōngjù
AT wúxìngyà pasteryīgèyòngláifǔzhùyǐfùzhìtiēshàngzhěnghéyīngyòngchéngshìjièmiànfànlìchéngshìmǎdechéngshìzhuànxiěgōngjù
_version_ 1718208149946630144