factory_bot icon indicating copy to clipboard operation
factory_bot copied to clipboard

Repository Name

Open tastycode opened this issue 10 years ago • 54 comments

Every time I refer to this library in code, I'm tempted to alias it to Factory.

I'm curious as to where the name came from?

tastycode avatar Jun 22 '16 06:06 tastycode

Duplicate of https://github.com/thoughtbot/factory_girl/issues/849

Ross-Hunter avatar Jun 24 '16 13:06 Ross-Hunter

@tastycode Thanks for bringing this up.

What does "factory girl" really mean? Simply put, it draws attention to a woman's gender because she happens to be in a male-dominated environment.

Unfortunately, the software industry is also a male-dominated environment, and it's widely acknowledged that tech has a serious diversity problem.

One symptoms of the problem is judging people based on their gender rather than their character-- which is what the idiom "factory girl" does. So, I think the name FactoryGirl makes it slightly harder for women to feel welcome in our profession. I'd love to see it changed.

This opinion is based on personal experience-- at one point, I was going through some code with a female engineer, and noticing the name FactoryGirl led to an awkward exchange. Since then, I've always aliased it as Factory, but that doesn't do much to solve the underlying problem.

marisawallace avatar Jul 10 '16 04:07 marisawallace

The library FactoryGirl uses the "factory method" design pattern to define ways in which developers can construct data for a test suite. Because Factory itself was somewhat ambiguous (since it's also a design pattern), we looked at a handful of pop culture references and landed on Factory Girl, which has ties to both Rosie the Riveter and a Rolling Stones song.

joshuaclayton avatar Jul 11 '16 13:07 joshuaclayton

Related: here's the announcement post on our blog, Giant Robots.

joshuaclayton avatar Jul 11 '16 13:07 joshuaclayton

At one point, I was going through some code with a female engineer, and noticing the name FactoryGirl led to an awkward exchange.

I'd like to know more about this. How was it awkward? Did you feel discomfort because of the name? Did the female engineer express discomfort because of the name? Thank you.

tute avatar Jul 11 '16 13:07 tute

@tute Another guy in the vicinity made a joke about the [factory girl] "doing the work for you". The woman I was working with didn't explicitly say that she felt uncomfortable (people almost never do), but my subjective impression was that she felt uncomfortable. I also felt uncomfortable.

marisawallace avatar Jul 11 '16 15:07 marisawallace

I personally found this issue when cleansing a code-base of unnecessarily gendered class and variable names.

Regardless of the original intent, I do think that people working in code-base using this gem have to be conscious of why this is an explicitly gendered reference just because of the name.

Given the desire to not create ambiguity with the pattern, maybe FactoryMachine.

Or even better, since it comes from ThoughtBot. FactoryBot

tastycode avatar Jul 11 '16 15:07 tastycode

I used the Factory Girl gem with colleagues of different genders, and the question of the name never came up. I never cared enough about the name, either, but today I found myself thinking about it, and learned about https://en.wikipedia.org/wiki/Rosie_the_Riveter. Now I love this gem's name.

tute avatar Jul 11 '16 17:07 tute

Just coming from a male perspective, It's seems like a pretty sexist name to me.

Regardless of the original intent, I do think that people working in code-base using this gem have to be conscious of why this is an explicitly gendered reference just because of the name.

I couldn't agree more. I wouldn't want to depend on something called YellowWorker.

https://news.ycombinator.com/item?id=7757667 <-- reference

quangv avatar Aug 27 '16 03:08 quangv

I want to thank you all for your feedback, and I appreciate the honesty and candor here.

Regardless of the original intent, I do think that people working in code-base using this gem have to be conscious of why this is an explicitly gendered reference just because of the name.

I wholeheartedly agree.

I'll be working with the rest of the thoughtbot team to understand what the best next steps are and what a transition process might look like to a new gem name.

There's some inherent amount of "Google juice" with the current name around blog posts and other content that, while the gem may have changed, still follows the same patterns and guidance.

I'd consider a positive outcome to be one where a name is chosen for this (and for the factory_girl_rails gem to follow as well) that includes the previous name in the readme, as well as redirects to point developers to the correct resources online. A significant amount of credit goes out to everyone who's used, written about, and contributed to this software and I believe we as a community can help make this better with a more inclusive name going forward.

Again, thank you all for your feedback.

joshuaclayton avatar Aug 27 '16 11:08 joshuaclayton

I opened #942 to explain the origins of the name while we discuss a potential rename.

jferris avatar Aug 29 '16 14:08 jferris

I don’t speak for all women, just myself- but this seems potentially overblown. If you want to rename please just 1st make sure that this is actually something that makes women uncomfortable and that the folks (none who are women) in this thread are not projecting discomfort.

There is real, honest, awful sexism in tech, but this is not it.

The origins of the name, if anything, have roots in empowering women economically. Maybe throw something in the readme to highlight that.

galiat avatar Aug 29 '16 16:08 galiat

As an initial pass, I've merged https://github.com/thoughtbot/factory_girl/pull/943, which provides a bit of color around the origins of the repository naming. That said, we're still working on improving this further, and hope to have further changes in the coming months to address this more fully.

Again, thank you all for your patience with this!

joshuaclayton avatar Oct 07 '16 19:10 joshuaclayton

If you change library's name, at least don't do it in a PATCH update. That's just stupid.

zernie avatar Oct 22 '17 11:10 zernie

@zernie we're looking into the change, but had expected the only impact to be a deprecation warning, and had aliased the previous constant in what we thought would guarantee no breaking changes. Check out https://github.com/thoughtbot/factory_bot/blob/c716ce01b448ce4e0bf855c5a2c63ecb9206322e/lib/factory_girl.rb#L3 for context.

While this worked for the projects we'd tried this on, clearly others' projects were impacted. We've since yanked the factory_girl and factory_girl_rails 4.8.2 versions to prevent further breaking changes, and will be looking into other options for rolling this out in a sensible fashion. Thanks for your patience.

joshuaclayton avatar Oct 22 '17 20:10 joshuaclayton

As a bot i feel offended by the new name :v

pcriv avatar Oct 23 '17 08:10 pcriv

As a feminist, I feel slightly puzzled by the name change. As @galiat previously mentioned, this change erases a gendered bias that was actually empowering to women - even if probably 99% of users were not aware of it - and she had clearly stated that the gender bias problems in tech industry are absolutely not related to this library name. Other libraries, playing on the double meaning of words, and referring to physical attributes of people, both in wording and in imagery, could be really relate to sexism, but not one that relates to one of the historical icons of feminism.

In fact a positive bias (which would mean introducing more feminine naming in the whole tech) would probably be even better, to compensate for the historical male-lead decision making.

This said, it is clear that the change has already been implemented, so it's is clear that mine is just a political response over a political issue that is, in my humble opinion, not being managed correctly.

saverio-kantox avatar Oct 23 '17 10:10 saverio-kantox

builds breaking because of gender warfare. leave your politics at town hall, please. thank you.

bildschirmfoto 2017-10-23 um 15 56 06

glaszig avatar Oct 23 '17 13:10 glaszig

@glaszig due to an issue with renamed constants not being retained, we yanked 4.8.2 of the gem.

If you've explicitly locked to 4.8.2 in your Gemfile, please adjust it to 4.8.1.

group :development, :test do
  # old
  gem "factory_girl", "4.8.2"
  # new
  gem "factory_girl", "4.8.1"
end

The same applies if you're using factory_girl_rails:

group :development, :test do
  # old
  gem "factory_girl_rails", "4.8.2"
  # new
  gem "factory_girl_rails", "4.8.1"
end

If you're using the pessimistic operator ("~> 4.8.0" or "~> 4.8.1"), running bundle update factory_girl_rails factory_girl should do the trick.

joshuaclayton avatar Oct 23 '17 14:10 joshuaclayton

We have been and will continue to delete comments that violate our Code of Conduct.

cpytel avatar Oct 23 '17 16:10 cpytel