SrcDiff: A syntactic differencing approach to improve the understandability of deltas. Issue 4 (21st October 2019)
- Record Type:
- Journal Article
- Title:
- SrcDiff: A syntactic differencing approach to improve the understandability of deltas. Issue 4 (21st October 2019)
- Main Title:
- SrcDiff: A syntactic differencing approach to improve the understandability of deltas
- Authors:
- Decker, Michael John
Collard, Michael L.
Volkert, L. Gwenn
Maletic, Jonathan I. - Abstract:
- Abstract: An efficient and scalable rule‐based syntactic differencing approach is presented. The tool srcDiff is built upon the srcML infrastructure. srcML adds abstract syntactic information into the code via an XML format. A syntactic difference of srcML documents is then taken. During this process, the differences are further refined using a set of rules that model typical editing patterns of source code by developers. Thus, the resulting deltas model edits that are programmer centric versus a purely syntactic tree edit view. Other syntactic differencing approaches focus on obtaining an optimal tree edit distance with the assumption that this will produce an accurate difference. While this may work well for small or simple changes, the differences quickly become unreadable for more complex changes. By contrast, the approach presented here purposely deviates from an optimal tree edit difference in order to create a delta that is both easier to understand and better models changes between the original and modified. To evaluate the approach, a comparison user study against a state‐of‐the‐art syntactic differencing approach and two line‐based differencing tools is conducted as an online within‐participant study with about 70 subjects on 14 sample changes. The results provide support that the rule‐based syntactic differencing produces more accurate and understandable deltas.
- Is Part Of:
- Journal of software. Volume 32:Issue 4(2020)
- Journal:
- Journal of software
- Issue:
- Volume 32:Issue 4(2020)
- Issue Display:
- Volume 32, Issue 4 (2020)
- Year:
- 2020
- Volume:
- 32
- Issue:
- 4
- Issue Sort Value:
- 2020-0032-0004-0000
- Page Start:
- n/a
- Page End:
- n/a
- Publication Date:
- 2019-10-21
- Subjects:
- change comprehension -- change visualization -- differencing -- syntactic differencing
Software engineering -- Periodicals
Computer software -- Development -- Periodicals
Software maintenance -- Periodicals
005.1 - Journal URLs:
- http://onlinelibrary.wiley.com/journal/10.1002/(ISSN)2047-7481 ↗
http://onlinelibrary.wiley.com/ ↗ - DOI:
- 10.1002/smr.2226 ↗
- Languages:
- English
- ISSNs:
- 2047-7473
- Deposit Type:
- Legaldeposit
- View Content:
- Available online (eLD content is only available in our Reading Rooms) ↗
- Physical Locations:
- British Library DSC - BLDSS-3PM
British Library HMNTS - ELD Digital store - Ingest File:
- 13283.xml