EconPapers    
Economics at your fingertips  
 

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

Sian Brooke

LSE Research Online Documents on Economics from London School of Economics and Political Science, LSE Library

Abstract: 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 (Trinkenreich et al., 2021). 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.

Keywords: gender; open-source software; computational methods; intersectional and feminist approaches; HCI (search for similar items in EconPapers)
JEL-codes: J01 R14 (search for similar items in EconPapers)
Pages: 13 pages
Date: 2024-02-02
New Economics Papers: this item is included in nep-gen
References: Add references at CitEc
Citations:

Published in Journal of Computer-Mediated Communication, 2, February, 2024, 29(1). ISSN: 1083-6101

Downloads: (external link)
http://eprints.lse.ac.uk/120988/ Open access version. (application/pdf)

Related works:
This item may be available elsewhere in EconPapers: Search for items with the same title.

Export reference: BibTeX RIS (EndNote, ProCite, RefMan) HTML/Text

Persistent link: https://EconPapers.repec.org/RePEc:ehl:lserod:120988

Access Statistics for this paper

More papers in LSE Research Online Documents on Economics from London School of Economics and Political Science, LSE Library LSE Library Portugal Street London, WC2A 2HD, U.K.. Contact information at EDIRC.
Bibliographic data for series maintained by LSERO Manager ().

 
Page updated 2024-12-28
Handle: RePEc:ehl:lserod:120988