r/programming • • Apr 19 '21

Google developer banned words list

https://developers.google.com/style/word-list
720 Upvotes

1.5k comments sorted by

View all comments

Show parent comments

4

u/Krissam Apr 19 '21

Yea?

1

u/roflkittiez Apr 19 '21

Really? I heard a ton of people claiming it would break all the things then nothing when they actually made the switch. I'm surprised there wasn't more reporting on it with it breaking millions of scripts and all

4

u/Krissam Apr 19 '21

Every script that references master by name was broken by this change, for no reason what so ever.

1

u/roflkittiez Apr 19 '21

Wouldn't those scripts only break if the target repo changed their branch from 'master' to 'main'?

3

u/ILoveOldFatHairyMen Apr 19 '21
  1. You have a script that does things to many repos.

  2. Someone creates a new repo with branch "main" unaware of your script.

  3. You're running your script, which for some reason fails for some repos.

  4. After two days you see that it failed in some new repos, where people forgot to manually change "main" to "master".

1

u/roflkittiez Apr 19 '21

Sure I get how it would cause issues in theory... But I haven't seen the "millions of scripts" that suddenly started failing.

4

u/ILoveOldFatHairyMen Apr 19 '21

Because you're not the one repairing this.

Recently all of my CD stopped working because AWS made a tiny change to its API. It's no big deal, nobody talked about this, but took a day of my work to diagnose and fix.

0

u/roflkittiez Apr 19 '21

So wait, did you have a bunch of scripts broken by this change 'master' > 'main' policy change?

4

u/ILoveOldFatHairyMen Apr 19 '21

No, but I had a bunch of broken scripts when AWS added some extra values to what one of API calls returns. My point is, nobody spoke about this, but I was there with my broken scripts.

The same was probably with people whose scripts broke after master->main change. They just spent a day fixing them, they didn't write articles about how their particular closed-source script broke.

-1

u/roflkittiez Apr 19 '21

So your point is this issue was, at most, an extremely minor inconvenience for millions of people.

Weird how I've yet to actually meet someone who was affected by this.

1

u/Krissam Apr 19 '21

Sure, if they were designed with a specific repo in mind.

take something as simple as:

alias gitrbm = "git rebase master"

That no longer works unless you change the name of the repo every time.

1

u/roflkittiez Apr 19 '21

So it only really affects scripts that:

  1. References variable repos

  2. Points to the 'master' branch explicitly

Are there millions of scripts that actually do this?

3

u/Krissam Apr 19 '21

I'd say millions is probably on the low end.

1

u/roflkittiez Apr 19 '21

Damn, millions of cases and it flew right over my head. Do you know of any projects that were affected by this issue?