nep-gen New Economics Papers
on Gender
Issue of 2024‒03‒25
one paper chosen by
Jan Sauermann, Institutet för Arbetsmarknads- och Utbildningspolitisk Utvärdering


  1. Programmed differently? Testing for gender differences in Python programming style and quality on GitHub By Brooke, Sian

  1. By: Brooke, Sian
    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; Early Career Fellowship; grant number ECF-2021-272; OUP deal
    JEL: R14 J01
    Date: 2024–02–02
    URL: http://d.repec.org/n?u=RePEc:ehl:lserod:120988&r=gen

This nep-gen issue is ©2024 by Jan Sauermann. It is provided as is without any express or implied warranty. It may be freely redistributed in whole or in part for any purpose. If distributed in part, please include this notice.
General information on the NEP project can be found at https://nep.repec.org. For comments please write to the director of NEP, Marco Novarese at <director@nep.repec.org>. Put “NEP” in the subject, otherwise your mail may be rejected.
NEP’s infrastructure is sponsored by the School of Economics and Finance of Massey University in New Zealand.