Telescope: Fine-Tuned Discovery of Interactive Web UI Feature Implementation
Telescope: Fine-Tuned Discovery of Interactive Web UI Feature Implementation
复制标题
Telescope:交互式 Web UI 功能实现的微调发现
DOI:
10.1145/2984511.2984570
复制
发表时间:
2016
期刊:
影响因子:
--
通讯作者:
Haoqi Zhang
中科院分区:
文献类型:
--
作者:
Joshua Hibschman;Haoqi Zhang
Professional websites contain rich interactive features that developers can learn from, yet understanding their implementation remains a challenge due to the nature of unfamiliar code. Existing tools provide affordances to analyze source code, but feature-rich websites reveal tens of thousands of lines of code and can easily overwhelm the user. We thus present Telescope, a platform for discovering how JavaScript and HTML support a website interaction. Telescope helps users understand unfamiliar website code through a composite view they control by adjusting JavaScript detail, scoping the runtime timeline, and triggering relational links between JS, HTML, and website components. To support these affordances on the open web, Telescope instruments the JavaScript in a website without request intercepts using a novel sleight-of-hand technique, then watches for traces emitted from the website. In a case study across seven popular websites, Telescope helped identify less than 150 lines of front-end code out of tens of thousands that accurately describe the desired interaction in six of the sites. In an exploratory user study, we observed users identifying difficult programming concepts by developing strategies to analyze relatively small amounts of unfamiliar website source code with Telescope.