TY - GEN
T1 - Visualizing the Usage of Pythonic Idioms over Time
T2 - 10th International Workshop on Empirical Software Engineering in Practice, IWESEP 2019
AU - Sakulniwat, Tattiya
AU - Kula, Raula Gaikovina
AU - Ragkhitwetsagul, Chaiyong
AU - Choetkiertikul, Morakot
AU - Sunetnanta, Thanwadee
AU - Wang, Dong
AU - Ishio, Takashi
AU - Matsumoto, Kenichi
N1 - Funding Information:
ACKNOWLEDGMENT This research project was partially supported by Faculty of Information and Communication Technology, Mahidol University and JSPS KAKENHI Grant Numbers 18H04094, JP18KT0013 and 17H00731.
Publisher Copyright:
© 2019 IEEE.
PY - 2019/12
Y1 - 2019/12
N2 - Veterans within the Python community claim that the usage of Pythonic idiomatic writing style is usually preferred. Because of its conciseness and ease of understanding, the idiomatic code tends to be more efficient and less error-prone code. With the growth of Python developers outside the Python community, it is not certain to what extent how Python idiomatic code is used in real software projects, especially if there are consequences. In this paper, our aim is to understand when and how developers start to use idioms in their software projects. Specifically, we propose a technique to visualize and understand the usage of the with open Pythonic idiom, one of the popular idioms. Two visualizations are proposed: (1) a visualization of evolution of non-idiomatic and idiomatic style of writing in four Python software projects over time and (2) a visualization to show the amount of appearing and disappearing idioms by comparing from the first and the latest version of the projects. The results show that developers tend to adopt the idiomatic code over time. We also found that, in three out of the four projects, the developers fixed their code during the evolution of the software to improve their Pythonic coding styles.
AB - Veterans within the Python community claim that the usage of Pythonic idiomatic writing style is usually preferred. Because of its conciseness and ease of understanding, the idiomatic code tends to be more efficient and less error-prone code. With the growth of Python developers outside the Python community, it is not certain to what extent how Python idiomatic code is used in real software projects, especially if there are consequences. In this paper, our aim is to understand when and how developers start to use idioms in their software projects. Specifically, we propose a technique to visualize and understand the usage of the with open Pythonic idiom, one of the popular idioms. Two visualizations are proposed: (1) a visualization of evolution of non-idiomatic and idiomatic style of writing in four Python software projects over time and (2) a visualization to show the amount of appearing and disappearing idioms by comparing from the first and the latest version of the projects. The results show that developers tend to adopt the idiomatic code over time. We also found that, in three out of the four projects, the developers fixed their code during the evolution of the software to improve their Pythonic coding styles.
UR - http://www.scopus.com/inward/record.url?scp=85078195356&partnerID=8YFLogxK
UR - http://www.scopus.com/inward/citedby.url?scp=85078195356&partnerID=8YFLogxK
U2 - 10.1109/IWESEP49350.2019.00016
DO - 10.1109/IWESEP49350.2019.00016
M3 - Conference contribution
AN - SCOPUS:85078195356
T3 - Proceedings - 2019 10th International Workshop on Empirical Software Engineering in Practice, IWESEP 2019
SP - 43
EP - 48
BT - Proceedings - 2019 10th International Workshop on Empirical Software Engineering in Practice, IWESEP 2019
PB - Institute of Electrical and Electronics Engineers Inc.
Y2 - 13 December 2019 through 14 December 2019
ER -