arrow
返回

Programmed differently? Testing for gender differences in Python programming style and quality on GitHub

delete2024-02-02
delete1
delete
OA
AI
S
Siân Brooke *
DOI:10.1093/jcmc/zmad049delete
delete原文链接
delete原文求助
delete分享
delete收藏
摘要

摘要

En 中文
The underrepresentation of women in open-source software is frequently attributed to women's lack of innate aptitude compared to men: natural gender differences in technical ability (). Approaching code as a form of communication, I conduct a novel empirical study of gender differences in Python programming on GitHub. Based on 1,728 open-source projects, I ask if there is a gender difference in the quality and style of Python code measured in adherence to PEP-8 guidelines. I found significant gender differences in structure and how Python files are organized. While there is gendered variation in programming style, there is no evidence of gender difference in code quality. Using a Random Forest model, I show that the gender of a programmer can be predicted from the style of their Python code. The study concludes that gender differences in Python code are a matter of style, not quality. This study examines whether there is a difference in Python programming styles between gender groups. I examine available code on GitHub, a cloud-based hosting platform for collaboration known as version control, often used in open-source software development. First, I infer the gender of users from their usernames and the information provided on their profiles, labeling users as feminine, masculine, ambiguous, and anonymous. Anonymous users had no gender-based markers on their profiles, while ambiguous users had feminine and masculine characteristics. I then collect the publicly available projects of these users written in Python. Next, I analyze and generate statistics on Python files' adherence to style guidelines using a linter, an automated checking of source code for programmatic and stylistic errors. My findings reveal a gendered difference in the structure and components of Python files. However, I also discovered no gender difference regarding violations of Python style guidelines and code quality. This study shows gender difference in Python programming styles but not in the standard or quality of the code.
Keyword:
gender
open-source software
computational methods
intersectional and feminist approaches
HCI

期刊

Journal of Computer-Mediated Communication 封面图
Journal of Computer-Mediated Communication
IF:
5.7
论文数:
730
被引数:
5.7K

机构

U
university of london
学者数:
21.5W
论文数: 19.7W
被引数: 305
引用论文

引用论文

Women's Participation in Open Source Software: A Survey of the Literature
err2022-08-22
err36
PREAI
errTrinkenreich, Bianca; Wiese, Igor; Sarma, Anita; Gerosa, Marco; Steinmacher, Igor
err分享
err收藏
Gender differences and bias in open source: pull request acceptance of women versus men
err2017-05-01
err183
errOAAI
errTerrell, Josh; Kofink, Andrew; Middleton, Justin; Rainear, Clarissa; Murphy-Hill, Emerson; Parnin, Chris; Stallings, Jon
err分享
err收藏
Messaging preferences for the role of pharmacists in pharmacy education recruitment material药师在药房教育招聘材料中的信息传递偏好
err2023-06-01
err0
PREAI
errKyle John Wilby; Sophie A. Smith; Irene Yee; Fiona Cannon; Joseph Kim; Danny J. Cha; Mohammad Atiquzzaman; Carlo Marra
err分享
err收藏
err
IF0
err
err0
PREAI
err
err分享
err收藏
err分享
err收藏
err分享
err收藏
Computational Sociolinguistics: A Survey
err2016-09-01
err120
errOAAI
errNguyen, Dong; Dogruoz, A. Seza; Rose, Carolyn P.; de Jong, Franciska
err分享
err收藏
学者 查看更多内容