Mistakes Programmers Believe About Gender
Z411 | Wed 20 Jan 2:25 p.m.–3:10 p.m.
Presented by
-
Sam Bishop
@sam@techdragon.au
@TechDrgn
https://techdragon.au
Professional software developer, Amateur content creator and rocket scientist. Loves Python, their cats, working on personal software and hardware projects, along with everything space, playing games and 3D printing things.
Sam Bishop
@sam@techdragon.au
@TechDrgn
https://techdragon.au
Professional software developer, Amateur content creator and rocket scientist. Loves Python, their cats, working on personal software and hardware projects, along with everything space, playing games and 3D printing things.
Abstract
Gender is not a boolean, not a dropdown, and not something you can guess from a first name. Yet almost every codebase has a field somewhere that assumes otherwise, and in open source that assumption doesn't stay put: it ships in the library, the framework and the starter template, and every project downstream inherits it without ever making the decision.
We'll go through the mistakes that keep turning up: treating gender as binary and permanent, conflating it with sex, title and pronouns, collecting it when nothing actually needs it, and writing UI strings and translations that quietly assume one. Then the fixes: what to ask, when to ask it, how to store and protect it, how to translate around it, and how to let people change it, including in places like git history and contributor records that were never designed to change.
Open source is where these defaults get set, which makes it the one place they can be corrected for everyone at once. You'll leave with a checklist for your own forms and models, a handful of patches worth sending upstream, and a clearer picture of what gender actually is.
Gender is not a boolean, not a dropdown, and not something you can guess from a first name. Yet almost every codebase has a field somewhere that assumes otherwise, and in open source that assumption doesn't stay put: it ships in the library, the framework and the starter template, and every project downstream inherits it without ever making the decision.
We'll go through the mistakes that keep turning up: treating gender as binary and permanent, conflating it with sex, title and pronouns, collecting it when nothing actually needs it, and writing UI strings and translations that quietly assume one. Then the fixes: what to ask, when to ask it, how to store and protect it, how to translate around it, and how to let people change it, including in places like git history and contributor records that were never designed to change.
Open source is where these defaults get set, which makes it the one place they can be corrected for everyone at once. You'll leave with a checklist for your own forms and models, a handful of patches worth sending upstream, and a clearer picture of what gender actually is.