• Home
  • Search
  • Characterizing Duplicate Code Snippets between Stack Overflow and Tutorials
  • Cite Icon7
  • https://doi.org/10.1109/msr.2019.00048Copy DOI Icon

Characterizing Duplicate Code Snippets between Stack Overflow and Tutorials

  • May 1, 2019
  • Manziba Akanda Nishi +2 more
Show More
  • Abstract
  • Literature Map
  • References
  • Citations
  • Similar Papers
Abstract

Developers are usually unaware of the quality and lineage of information available on popular Web resources, leading to potential maintenance problems and license violations when reusing code snippets from these resources. In this paper, we study the duplication of code snippets between two popular sources of software development information: the Stack Overflow QA a significant number (31%) of answers that contained a duplicate code block were chosen as the accepted answer. Qualitative analysis reveals that developers commonly use Stack Overflow to ask clarifying questions about code they reused from tutorials, and copy code snippets from tutorials to provide answers to questions.

Similar Papers
  • Conference Article
  • Citations27

Python Coding Style Compliance on Stack Overflow

  • May 01, 2019
  • Nikolaos Bafatakis +6
  • Conference Article
  • Citations17

ICSD

  • Dec 03, 2018
  • Yanfang Ye +7
  • Conference Article
  • Citations63

Relationship-aware code search for JavaScript frameworks

  • Nov 01, 2016
  • Xuan Li +5
  • PDF
  • Research Article
  • Citations1

SCC-GPT: Source Code Classification Based on Generative Pre-Trained Transformers

  • Jul 07, 2024
  • Mathematics
  • Mohammad D Alahmadi +2
  • PDF
  • Research Article
  • Citations11

Incorporating Code Structure and Quality in Deep Code Search

  • Feb 16, 2022
  • Applied Sciences
  • Hao Yu +3
  • Conference Article

Detecting Adversarial Prompted AI-Generated Code on Stack Overflow: A Benchmark Dataset and an Enhanced Detection Approach

  • Sep 07, 2025
  • Aman Swaraj +3
  • Research Article
  • Citations1

How Do OSS Developers Reuse Architectural Solutions From Q&A Sites: An Empirical Study

  • Jul 01, 2025
  • IEEE Transactions on Software Engineering
  • Musengamana Jean De Dieu +2
  • Conference Article
  • Citations18

A Qualitative Investigation of Insecure Code Propagation from Online Forums

  • Sep 01, 2019
  • Wei Bai +2
  • Research Article
  • Citations29

Post2Vec: Learning Distributed Representations of Stack Overflow Posts

  • Sep 01, 2022
  • IEEE Transactions on Software Engineering
  • Bowen Xu +5
  • Conference Article
  • Citations14

Engineering Paper] SCC: Automatic Classification of Code Snippets

  • Sep 01, 2018
  • Kamel Alreshedy +4
  • Conference Article
  • Citations274

You Get Where You're Looking for: The Impact of Information Sources on Code Security

  • May 01, 2016
  • Yasemin Acar +5
  • Conference Article
  • Citations1

How Fast and Effectively Can Code Change History Enrich Stack Overflow?

  • Dec 01, 2020
  • Ryujiro Nishinaka +3
  • Conference Article
  • Citations42

Classifying stack overflow posts on API issues

  • Mar 01, 2018
  • Md Ahasanuzzaman +3
  • Conference Article
  • Citations2

Bug localization via searching crowd-contributed code

  • Nov 17, 2014
  • Qianxiang Wang +1
  • Conference Article
  • Citations13

Employing source code information to improve question-answering in stack overflow

  • May 16, 2015
  • Themistoklis Diamantopoulos +1
Cactus Communications logo

Copyright 2026 Cactus Communications. All rights reserved.