what do practitioners ask about code clone? a preliminary investigation of stack overflow
TRANSCRIPT
![Page 1: What do practitioners ask about code clone? A preliminary investigation of Stack Overflow](https://reader033.vdocuments.mx/reader033/viewer/2022052602/55ba6543bb61eb84718b4768/html5/thumbnails/1.jpg)
Software Engineering Laboratory, Department of Computer Science, Graduate School of Information Science and Technology, Osaka University
What Do Practitioners Ask about Code Clone? A Preliminary Investigation of Stack Overflow
Eunjong Choi1, Raula Gaikovina Kula2,
Norihiro Yoshida2, Katsuro Inoue1
1Graduate School of Information Science and Technology,
Osaka University, Japan2Graduate School of Information Science,
Nagoya University, Japan
1
![Page 2: What do practitioners ask about code clone? A preliminary investigation of Stack Overflow](https://reader033.vdocuments.mx/reader033/viewer/2022052602/55ba6543bb61eb84718b4768/html5/thumbnails/2.jpg)
Department of Computer Science, Graduate School of Information Science and Technology, Osaka University
2
Very little is known about practitioner’s needs on the detection and analysis of code clones.
Motivation of This Study
researcher
practitioners
![Page 3: What do practitioners ask about code clone? A preliminary investigation of Stack Overflow](https://reader033.vdocuments.mx/reader033/viewer/2022052602/55ba6543bb61eb84718b4768/html5/thumbnails/3.jpg)
Department of Computer Science, Graduate School of Information Science and Technology, Osaka University
Stack Overflow (SO)
3
![Page 4: What do practitioners ask about code clone? A preliminary investigation of Stack Overflow](https://reader033.vdocuments.mx/reader033/viewer/2022052602/55ba6543bb61eb84718b4768/html5/thumbnails/4.jpg)
Department of Computer Science, Graduate School of Information Science and Technology, Osaka University
The Data That We Analyzed
4
from July 31, 2008to July 31, 2012
![Page 5: What do practitioners ask about code clone? A preliminary investigation of Stack Overflow](https://reader033.vdocuments.mx/reader033/viewer/2022052602/55ba6543bb61eb84718b4768/html5/thumbnails/5.jpg)
Department of Computer Science, Graduate School of Information Science and Technology, Osaka University
The Data That We Analyzed
5
from July 31, 2008to July 31, 2012
Choose keywords related code clones
![Page 6: What do practitioners ask about code clone? A preliminary investigation of Stack Overflow](https://reader033.vdocuments.mx/reader033/viewer/2022052602/55ba6543bb61eb84718b4768/html5/thumbnails/6.jpg)
Department of Computer Science, Graduate School of Information Science and Technology, Osaka University
The Data That We Analyzed
6
from July 31, 2008to July 31, 2012
Choose keywords related code clones
Select questions based on the chosen keywords
'code clone''code cloning'
'code redundancy'
'code duplicate''code duplication''duplicate code'
'duplicated code'
![Page 7: What do practitioners ask about code clone? A preliminary investigation of Stack Overflow](https://reader033.vdocuments.mx/reader033/viewer/2022052602/55ba6543bb61eb84718b4768/html5/thumbnails/7.jpg)
Department of Computer Science, Graduate School of Information Science and Technology, Osaka University
The Data That We Analyzed
7
from July 31, 2008to July 31, 2012
Choose keywords related code clones
Select questions based on the chosen keywords
Manually validate
'code clone''code cloning'
'code redundancy'
'code duplicate''code duplication''duplicate code'
'duplicated code'
1,654 questions
![Page 8: What do practitioners ask about code clone? A preliminary investigation of Stack Overflow](https://reader033.vdocuments.mx/reader033/viewer/2022052602/55ba6543bb61eb84718b4768/html5/thumbnails/8.jpg)
Department of Computer Science, Graduate School of Information Science and Technology, Osaka University
The Data That We Analyzed
8
from July 31, 2008to July 31, 2012
925 questions
Choose keywords related code clones
Select questions based on the chosen keywords
Manually validate
'code clone''code cloning'
'code redundancy'
'code duplicate''code duplication''duplicate code'
'duplicated code'
1,654 questions
![Page 9: What do practitioners ask about code clone? A preliminary investigation of Stack Overflow](https://reader033.vdocuments.mx/reader033/viewer/2022052602/55ba6543bb61eb84718b4768/html5/thumbnails/9.jpg)
Department of Computer Science, Graduate School of Information Science and Technology, Osaka University
The Data That We Analyzed
9
from July 31, 2008to July 31, 2012:
925 questions
Choose keywords related code clones
Select questions based on the chosen keywords
Manually validate
'code clone''code cloning'
'code redundancy'
'code duplicate''code duplication''duplicate code'
'duplicated code'
![Page 10: What do practitioners ask about code clone? A preliminary investigation of Stack Overflow](https://reader033.vdocuments.mx/reader033/viewer/2022052602/55ba6543bb61eb84718b4768/html5/thumbnails/10.jpg)
Department of Computer Science, Graduate School of Information Science and Technology, Osaka University
Research Question 1
• RQ1: What Kinds of Programming Languages/Techniques were Appeared
in Questions on Clones?
10
![Page 11: What do practitioners ask about code clone? A preliminary investigation of Stack Overflow](https://reader033.vdocuments.mx/reader033/viewer/2022052602/55ba6543bb61eb84718b4768/html5/thumbnails/11.jpg)
Department of Computer Science, Graduate School of Information Science and Technology, Osaka University
Methodology
11
![Page 12: What do practitioners ask about code clone? A preliminary investigation of Stack Overflow](https://reader033.vdocuments.mx/reader033/viewer/2022052602/55ba6543bb61eb84718b4768/html5/thumbnails/12.jpg)
Department of Computer Science, Graduate School of Information Science and Technology, Osaka University
Methodology
12
Tags related to development techniques?
Tags related to programming language ?
![Page 13: What do practitioners ask about code clone? A preliminary investigation of Stack Overflow](https://reader033.vdocuments.mx/reader033/viewer/2022052602/55ba6543bb61eb84718b4768/html5/thumbnails/13.jpg)
Department of Computer Science, Graduate School of Information Science and Technology, Osaka University
Methodology
13
![Page 14: What do practitioners ask about code clone? A preliminary investigation of Stack Overflow](https://reader033.vdocuments.mx/reader033/viewer/2022052602/55ba6543bb61eb84718b4768/html5/thumbnails/14.jpg)
Department of Computer Science, Graduate School of Information Science and Technology, Osaka University
Methodology
14
Tags related to development techniques?
Tags related to programming language ?
![Page 15: What do practitioners ask about code clone? A preliminary investigation of Stack Overflow](https://reader033.vdocuments.mx/reader033/viewer/2022052602/55ba6543bb61eb84718b4768/html5/thumbnails/15.jpg)
Department of Computer Science, Graduate School of Information Science and Technology, Osaka University
python
ruby-on-rails
.net
javascript
php
jquery
asp.net
c++
java
c#
0 20 40 60 80 100 120 140 160 180 200
Finding (1/2)
Tags related to programming language
![Page 16: What do practitioners ask about code clone? A preliminary investigation of Stack Overflow](https://reader033.vdocuments.mx/reader033/viewer/2022052602/55ba6543bb61eb84718b4768/html5/thumbnails/16.jpg)
Department of Computer Science, Graduate School of Information Science and Technology, Osaka University
mvc
architecture
unit-testing
generics
dry
design
templates
inheritance
design-patterns
refactoring
0 20 40 60 80
Finding (2/2)
Tags related to development techniques
![Page 17: What do practitioners ask about code clone? A preliminary investigation of Stack Overflow](https://reader033.vdocuments.mx/reader033/viewer/2022052602/55ba6543bb61eb84718b4768/html5/thumbnails/17.jpg)
Department of Computer Science, Graduate School of Information Science and Technology, Osaka University
mvc
architecture
unit-testing
generics
dry
design
templates
inheritance
design-patterns
refactoring
0 20 40 60 80
Finding (2/2)
The most frequently appeared tags in the questionsare about object-oriented programming
languages and web programming languages.
Moreover, tags about clone management also frequently appear
Tags related to development techniques
![Page 18: What do practitioners ask about code clone? A preliminary investigation of Stack Overflow](https://reader033.vdocuments.mx/reader033/viewer/2022052602/55ba6543bb61eb84718b4768/html5/thumbnails/18.jpg)
Department of Computer Science, Graduate School of Information Science and Technology, Osaka University
Research Question 2
RQ2: Were Questions on Clones Asked by Trusted Practitioners?
18
Novice? Expert?
Practitioners that are interested in handling code clones
![Page 19: What do practitioners ask about code clone? A preliminary investigation of Stack Overflow](https://reader033.vdocuments.mx/reader033/viewer/2022052602/55ba6543bb61eb84718b4768/html5/thumbnails/19.jpg)
Department of Computer Science, Graduate School of Information Science and Technology, Osaka University
Methodology
19
![Page 20: What do practitioners ask about code clone? A preliminary investigation of Stack Overflow](https://reader033.vdocuments.mx/reader033/viewer/2022052602/55ba6543bb61eb84718b4768/html5/thumbnails/20.jpg)
Department of Computer Science, Graduate School of Information Science and Technology, Osaka University
Finding
20
Reputations(Clone) Reputations(General)0
500
1,000
1,500
2,000
2,500
3,000
AskedAnswered
The average reputations of practitioners who asked and answered questions on clones, and other questions
![Page 21: What do practitioners ask about code clone? A preliminary investigation of Stack Overflow](https://reader033.vdocuments.mx/reader033/viewer/2022052602/55ba6543bb61eb84718b4768/html5/thumbnails/21.jpg)
Department of Computer Science, Graduate School of Information Science and Technology, Osaka University
Finding
21
Reputations(Clone) Reputations(General)0
500
1,000
1,500
2,000
2,500
3,000
AskedAnswered
Practitioners who asked about clonesare trusted by the others in SO.
The average reputations of practitioners who asked and answered questions on clones, and other questions
![Page 22: What do practitioners ask about code clone? A preliminary investigation of Stack Overflow](https://reader033.vdocuments.mx/reader033/viewer/2022052602/55ba6543bb61eb84718b4768/html5/thumbnails/22.jpg)
Department of Computer Science, Graduate School of Information Science and Technology, Osaka University
Discussion
22
![Page 23: What do practitioners ask about code clone? A preliminary investigation of Stack Overflow](https://reader033.vdocuments.mx/reader033/viewer/2022052602/55ba6543bb61eb84718b4768/html5/thumbnails/23.jpg)
Department of Computer Science, Graduate School of Information Science and Technology, Osaka University
23
Discussion
![Page 24: What do practitioners ask about code clone? A preliminary investigation of Stack Overflow](https://reader033.vdocuments.mx/reader033/viewer/2022052602/55ba6543bb61eb84718b4768/html5/thumbnails/24.jpg)
Department of Computer Science, Graduate School of Information Science and Technology, Osaka University
24
Discussion
![Page 25: What do practitioners ask about code clone? A preliminary investigation of Stack Overflow](https://reader033.vdocuments.mx/reader033/viewer/2022052602/55ba6543bb61eb84718b4768/html5/thumbnails/25.jpg)
Department of Computer Science, Graduate School of Information Science and Technology, Osaka University
25
Discussion
![Page 26: What do practitioners ask about code clone? A preliminary investigation of Stack Overflow](https://reader033.vdocuments.mx/reader033/viewer/2022052602/55ba6543bb61eb84718b4768/html5/thumbnails/26.jpg)
Department of Computer Science, Graduate School of Information Science and Technology, Osaka University
Summary
26