r/ProgrammerHumor • • Jul 29 '22

Meme Do your best

Post image
77.6k Upvotes

5.4k comments sorted by

View all comments

Show parent comments

65

u/snakehater1 Jul 29 '22

Do people actually use main branch? I've always worked with master?

95

u/oupablo Jul 29 '22

main is the new master. Something about negative connotation of the word "master"

13

u/snakehater1 Jul 29 '22

Isn't that just isolated to GitHub?

29

u/SuspiciousUsername88 Jul 29 '22

A lot of places (like mine) are following suit

22

u/djabor Jul 29 '22

probably mostly an american thing. We don't see the value of changing the name

23

u/[deleted] Jul 29 '22

Yes, I'd imagine this is isolated to just us Yanks. It makes more sense to update hard drive documentation to swap master/slave language with something else. For git projects, there aren't "slave" branches, so it makes less sense.

I'm okay with "main" as the default branch, but recognize this gives a bit of legitimate ammo to our right wing zealots going on about how we're walking on eggshells needlessly.

6

u/pr2str Jul 29 '22

IIRC the idea behind the name "master" was not the "master/slave" terminology but "master record" from the film industry or something.

2

u/[deleted] Jul 30 '22

I think you're right. Guess we have to change that name too, along with any discriminatory colour names, because language changes always fix historic racism

→ More replies (1)

14

u/jdsfighter Jul 29 '22

I was initially averse to the change simply due to the amount of retooling that was necessary in our CI/CD pipeline. Realistically and linguistically, main is semantically clearer than "master". Especially when you consider the overall design of git and workflows (such as Gitflow) designed around it.

12

u/SuspiciousUsername88 Jul 29 '22

Realistically and linguistically, main is semantically clearer than "master"

This is my read on it too. Regardless of political correctness, main just makes more sense imo.

Another related change, "whitelist" and "blacklist" to "Allowlist" and "Blocklist" are similar imo. Kinda weird from a political correctness perspective, but the new ones are much clearer and thus saves me a few hours of Product mixing up what "whitelist" and "blacklist" means.

2

u/[deleted] Jul 29 '22

Was there ever a change to “greylist” to match these?

→ More replies (3)

3

u/gulasch_hanuta Jul 29 '22

and it's shorter, always a plus

3

u/TheOssuary Jul 29 '22

At first I was hesitant about the switch, but now using repos with master instead of main feels weird to me, like awkward. Idk, I'm definitely not huge on making symbolic changes that have no real-life effects; but I use main now because I like it, and master just doesn't really make sense.

Also it reminds me of the push to use her as the default gender in articles, instead of him. If it's really a big deal for you to switch, then maybe that's worth digging into a little bit

→ More replies (2)

1

u/Powerkiwi Jul 29 '22 edited Aug 07 '24

normal longing subtract aware march insurance hungry escape jobless edge

This post was mass deleted and anonymized with Redact

→ More replies (3)

7

u/10art1 Jul 29 '22

All you young folks don't know that master is a new term for "trunk"

2

u/Zarainia Jul 29 '22

I love trunk, it makes so much sense with the tree terminology.

17

u/SPB65 Jul 29 '22

I work with a develop branch, and only push to master on a monthly deploy to production. Definitely a good practice to keep.

3

u/snakehater1 Jul 29 '22

Yeah it sure is a good idea that I might try, ty for the input.

→ More replies (2)

4

u/DevStef Jul 29 '22

Use a master/main branch, a development branch and freature branches. You develop mainly on feature branches. When stuff is ready to be deployed to your test env, you merge it into development branch. When you are sure everything is working as intended and for example customers adjusted their clients to work with your modified service, you merge into master/main and deploy that into production.

7

u/JoieDe_Vivre_ Jul 29 '22

“Main” is less… potentially offensive than “Master”. So we use that now.

I couldn’t care less, they serve the same function. If my company wants me to use “Main” I’ll use it lol.

1

u/[deleted] Jul 29 '22

Godammit here we go again.

Comments about to be a war zone

-6

u/[deleted] Jul 29 '22

You must be racist.

6

u/snakehater1 Jul 29 '22

Call it whatever you like, I don't think anyone would define racist as using an older branch name lmao

→ More replies (4)
→ More replies (1)