Removing ableist language in code is important; it helps to create and maintain an environment that welcomes all developers of all backgrounds, while emphasizing that we as developers select the most articulate, precise, descriptive language we can rather than relying on metaphors. Quite simply, avoiding ableist language lets us make sure we are inclusive of all developers, while moving toward language that is simultaneously more acccessible to developers whose first language might not be our own.
The phrase sanity check is ableist, and unnecessarily references mental health in our code bases. It denotes that people with mental illnesses are inferior, wrong, or incorrect, and the phrase sanity continues to be used by employers and other individuals to discriminate against these people.
There are a ton of alternatives, and one of the best ways to select one is to ask yourself: What am I actually checking? and select something more descriptive. In everyday conversation, we can simply drop the idiom completely and say something akin to Let's check to ensure everything is working.
If this doesn't help, consider one of these many alternatives. I'm prone to using the first two in my own code, though these are gleaned from many developers:
- Quick check
- Initial check
- Confidence check
- Coherence check
- Soundness check
- Calibration check
- Rationality check
One to avoid? Health check. Along with again tieing in discussions of health and disability, this phrase already carries a lot of previous implications from other products that may obfuscate what you're actually trying to say.
I'm glad this isn't an issue that impacts you negatively, and wish I could say the same for so many people I've met! For many years I've been a trained facilitator in a major support group program here in NYC and help out also with risk assessment and harm reduction, especially with folks who haven't yet been able to find therapy and/or psychiatry. Our collective diagnoses span depression, bipolar disorders, OCD, PTSD, psychosis, schizophrenia/schizoaffective, dissociative identity disorder, depersonalization-derealization disorder, eating disorders, and more, and I live with a handful of these myself that at times skew my perception of reality and have made it hard to find acceptance in engineering communities, especially amongst open-source.
All that is to say, no white knighting intended. This gist was originally written after the topic came up over, and over, and over amongst the communities I am in, across working in D&I in several companies, in online communities of disabled and chronically ill software engineers, at conferences and through giving talks, and often alongside examination of other terminology like "Blacklist/Whitelist", "Master/Slave", etc., that is outdated and harmful to marginalized folks trying to find a place in tech. As a result, I'm not inclined to remove this or the perspectives folks are posting as comments, as it's also meant to amplify all those people and events that caused me to post this. You're welcome to ignore it though, or encourage other ways to help address concerns like these.