Error-Tolerant Code Segmentation for Supporting Semantic Conflict Prevention in Real-Time Collaborative Programming

Real-time collaborative programming is a novel approach that enables programmers to simultaneously edit shared source code at the same time, which has been applied in a variety of software development scenarios. To achieve semantic conflict prevention in real-time collaboration, a dependency-based automatic locking (DAL) approach was proposed in prior work, which prevents programmers' concurrent editing on selected source code regions. However, DAL's reliance on source code analysis techniques may lead to failures when there exists syntax errors in the source code. To overcome such limitation, we propose an error-tolerant code segmentation (ECS) approach, as well as supporting algorithms, to improve semantic conflict prevention. Technically, the ECS approach continuously identifies source code regions and maintains their range information to ensure stable source code segmentation and code region tracking during the collaboration process, without the need to deal with complex syntax issues. The proposed approach and algorithms have been implemented in a prototype, and experimental evaluations have demonstrated their effectiveness and efficiency.

Authors

Institutions

Publication Details

Published
2024-10-06
DOI
https://doi.org/10.1109/smc54092.2024.10832108
Primary Topic
Software Engineering Techniques and Practices
Type
article
Field-Weighted Citation Impact
0.00

Funders

Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Error-Tolerant Code Segmentation for Supporting Semantic Conflict Prevention in Real-Time Collaborative Programming

Jinfeng Jiang, Hongfei Fan, Mingjie Wang, Jing Lyu et al.
Software Engineering Techniques and Practices
article

Error-Tolerant Code Segmentation for Supporting Semantic Conflict Prevention in Real-Time Collaborative Programming

Jinfeng Jiang, Hongfei Fan, Mingjie Wang, Jing Lyu, Zhonghao Liu, Qiuyun Fu
article en

Abstract

Real-time collaborative programming is a novel approach that enables programmers to simultaneously edit shared source code at the same time, which has been applied in a variety of software development scenarios. To achieve semantic conflict prevention in real-time collaboration, a dependency-based automatic locking (DAL) approach was proposed in prior work, which prevents programmers' concurrent editing on selected source code regions. However, DAL's reliance on source code analysis techniques may lead to failures when there exists syntax errors in the source code. To overcome such limitation, we propose an error-tolerant code segmentation (ECS) approach, as well as supporting algorithms, to improve semantic conflict prevention. Technically, the ECS approach continuously identifies source code regions and maintains their range information to ensure stable source code segmentation and code region tracking during the collaboration process, without the need to deal with complex syntax issues. The proposed approach and algorithms have been implemented in a prototype, and experimental evaluations have demonstrated their effectiveness and efficiency.

Tongji University (CN), University of Wisconsin–Madison (US)
Natural Science Foundation of Shanghai, National Natural Science Foundation of China, Science and Technology Commission of Shanghai Municipality, National Key Research and Development Program of China, Fundamental Research Funds for the Central Universities
Openalex Percentile: Top 59%
Software Engineering Techniques and Practices
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.