r/ProgrammerHumor • • Jun 16 '20

Meme Meanwhile.

Post image
50.6k Upvotes

2.9k comments sorted by

View all comments

1.7k

u/hum4n4 Jun 16 '20

we did it

racism is no more

368

u/anhatthezoo Jun 16 '20

and a lot of code relying on the name is no more :)

138

u/112-Cn Jun 16 '20

Your code shouldn't rely on the default branch name of GitHub. Git branches can have any name you want, master is simply default at creation.

47

u/littlechippie Jun 16 '20

Idk about github, but all my .ymls on gitlab have cases for testing and deploying master branches. I don’t necessarily care about deploying a docker container to the registry for every MR into a feature branch.

→ More replies (3)

30

u/chibstelford Jun 16 '20

Emphasis on the shouldn't. Lots of software does things through a means that it probably shouldn't, but was cost effective /a safe assumption at the time.

3

u/JohnnyDerppe Jun 16 '20

"Just a temporary fix". Then 2 or 3 years later when things break do they change

3

u/Necrocornicus Jun 16 '20

I’m relatively certain no one is ever going to change the default branch in “git”. Let’s just say a lot of people won’t be upgrading if that happens.

→ More replies (1)

159

u/Buddy-Matt Jun 16 '20

No code should rely on any form of naming with any chance of being changed by a third party. That's what config files are for!

116

u/arathorn76 Jun 16 '20

No naming schemes should be changed after development started or all your devs have to slave away in updating naming in the code

→ More replies (3)

2

u/Cryse_XIII Jun 16 '20

All my fieldbyname()-functions, noooooooo!

→ More replies (3)

5

u/Ayfid Jun 16 '20

Indeed they shouldn't. But the reality is that thousands of them do, and this change will break them. It is a breaking change without any sound justification.

3

u/Kingofwhereigo Jun 16 '20

True. My primary branch is "squirrel" and all other branches are nuts.

3

u/Necrocornicus Jun 16 '20

As someone who works in build automation and devops, I’ll just respond with a hearty LOL!

“Master” is not racist or offensive. You can be a master baker. You can be a master of your domain.

“Slave” is definitely offensive and we removed it from our code years ago.

“Master” is not going anywhere. Good luck to anyone who thinks it is hahahaha.

0

u/[deleted] Jun 16 '20

[deleted]

2

u/Necrocornicus Jun 16 '20

Using the word “slave” has racial connotations in America regardless of what you choose to believe.

Sure, the Jews were slaves in Egypt and there was widespread slavery across the planet not that long ago. But in the US, it typically refers to our (ancestor’s) long and brutal history of enslaving black people.

When I’m at home, I use whatever words I want. I might call someone a twat or a cunt. When I’m at work, I wouldn’t use the word “cunt” because I don’t want to make my coworkers uncomfortable. “Slave” is similar in that I could reasonably expect it to make my black coworkers uncomfortable.

That’s all just a really roundabout way of saying “We changed it because empathy and respect”. If changing my behavior to make my coworkers more comfortable is “pandering”, then I’m guilty as charged. :)

Also, I work in build systems, which is a bit different than hard drives (easier to modify high level code). We were able to make the change very easily (because we did it years ago before we had a ton of code). We use the word “agent” or “worker” to refer to the “slaves”.

It would obviously be more difficult to modify hard drives (which are physical objects) but I didn’t even realize current hard drive technology had a master/slave configuration. I thought that died with IDE.

0

u/[deleted] Jun 16 '20

[deleted]

→ More replies (2)

6

u/LukasFT Jun 16 '20

Let's assume most software companies use Git. If they were all to use just 1 hour to configure all of their repositories, this still results in a lot of money used on that.

There's always an opportunity cost, and in this case, it could be to donate to a charity that would probably make a much bigger difference per dollar spent.

→ More replies (10)
→ More replies (7)

5

u/silvrado Jun 16 '20

job security, yay!

8

u/Mal_Dun Jun 16 '20

If there are hard-coded names in it it shouldn't be anymore anyway ...

2

u/Likely_not_Eric Jun 16 '20

Then this is a good scream test for brittle code.

43

u/bestjakeisbest Jun 16 '20

thanks skipper.

3

u/firejak308 Jun 16 '20

Not if I have anything to say about it! I'm gonna say the N-word!

5

u/Daell Jun 16 '20

it was "Super easy barely an inconvenience"

→ More replies (4)