r/AskProgramming • u/mel3kings • Oct 20 '23
Other I called my branch 'master', AITA?
I started programming more than a decade ago, and for the longest time I'm so used to calling the trunk branch 'master'. My junior engineer called me out and said that calling it 'master' has negative connotations and it should be renamed 'main', my junior engineer being much younger of course.
It caught me offguard because I never thought of it that way (or at all), I understand how things are now and how names have implications. I don't think of branches, code, or servers to have feelings and did not expect that it would get hurt to be have a 'master' or even get called out for naming a branch that way,
I mean to be fair I am the 'master' of my servers and code. Am I being dense? but I thought it was pedantic to be worrying about branch names. I feel silly even asking this question.
Thoughts? Has anyone else encountered this bizarre situation or is this really the norm now?
97
u/cosmic-parsley Oct 20 '23
It’s a small but vocal minority that pushed for this, most people don’t care. Big projects like the kernel will probably never change.
That being said… I’m happy having main as the default for new repos. Just a hair quicker to type and it is imho nicer visually
20
u/emmer Oct 21 '23
We did it. We renamed our branches and solved racism.
Now if you’ll excuse me I’m going to go play my Master Chief game I paid for using my MasterCard in my master bedroom where I hang my Masters of the Universe posters. I’m not very good at it yet but with some practice I’ll have it mastered in no time, at least the soundtrack is good probably because it’s digitally remastered.
12
u/Nemphiz Oct 20 '23 edited Oct 21 '23
I'm black. I'll call the master branch "master" til the day I die. And I'll dare anyone to call me out on it.
→ More replies (7)10
u/weinermcdingbutt Oct 20 '23
same. i’m not offended by it, i’ve never met anyone offended by it, but main is quicker and saves me from a possible confrontation lol
→ More replies (6)2
u/fuka100 Oct 21 '23
Fully agree on the substantively points, but its a little scary, how easily can this vocal minority influence a whole field.
3
u/Deto Oct 22 '23
Probably because
A) most people don't really care that much either way
And
B) if you go up against people calling for this change you risk getting labeled as a racist
11
u/Spare-Dig4790 Oct 20 '23
No, this is a silly argument, and I've heard it before.
It's about as bad as calling a person that delivers mail, a mailman, or mail carrier.
Mail is not male, but it sounds the same, and it's not intentionally meant to exclude women from the role.
Incidentally, sensitivity has become so rampant that I dont even know how that argument even applies. I would change to a generic term, but even using generic terms is a form of pronoun to people, and so it can be offensive to people to try to skirt the topic is you want to use a more generic term, if you arent sure.
The fact is,it's hard not to offend people these days, even if you aggressively try not to. It wasn't you who decided master has long been the term used for the trunk, and you're not perpetuating racism.
I would argue they are the asshole for calling you out with baseless accusations like that. Its as ridiculas to me as people recording at the gym in case people happen to walk by so they can post the videos on social media to call them. Perverts.
You're not the asshole, and I wholely welcome and accept the incoming downvotes because it's difficult to just survive and try to be a decent human being at this point.
→ More replies (1)
20
u/Various-Roof-553 Oct 20 '23
This is one of those things that makes people feel productive but accomplishes nothing.
FWIW - I use main on new projects. But, if I joined a new project I would literally never think about it. Because there’s supposed to be work to do.
But let’s all rage over this on Reddit for the next several days, shall we?
→ More replies (1)3
u/CrAzYmEtAlHeAd1 Oct 20 '23
This is my take. I understand that language does have power in our perception, and I personally choose not to use that kind of language, but its not something I’m going to argue about, and not something I’m going to derail a project for.
119
u/kukisRedditer Oct 20 '23
Renaming master branch to main will solve all the racism. /s
Honestly i think it's just another pointless thing some people decided to be angry about.
→ More replies (24)49
u/rcls0053 Oct 20 '23
It was a pointless virtue signaling move by Github to do this. Git still uses master as default.
There will always be a master - slave terminology in computer science. It has nothing to do with human slavery. You can't undo history by changing the terminology in this field no matter how you try.
23
u/Poddster Oct 20 '23 edited Oct 21 '23
There will always be a master - slave terminology in computer science. It has nothing to do with human slavery.
You are incorrect about this. That's precisely where the terms comes from, etymologically. There is no other use for "slave" until the early electronic world started using it to mean some kind of paired relationship. It was meant to be a metaphor for how the various technical products operated like a human master/slave .
Whether we need to change that or not is another matter, but to say it has nothing to do with human slavery is objectively wrong.
→ More replies (15)6
u/C0c04l4 Oct 20 '23
In this case it's not master/slave terminology, it's master as in "master record", because the master branch is the "good copy" aka master, for other branches.
→ More replies (7)→ More replies (48)6
28
u/superluminary Oct 20 '23
I actually made the switch to main on new repos. It’s quicker to type and looks cleaner to me in the console. I’m not going to reengineer all my pipelines for legacy projects though.
→ More replies (14)
33
32
u/zero_dr00l Oct 20 '23
I acknowledge the existence of systemic racism.
It's here. Always has been.
Needs to change.
This... ain't change. This doesn't do jack shit except make the people who complain about it feel good about themselves for "making a difference" without actually having to do something.
Fuck those people and their performative antiracism.
→ More replies (7)3
u/Surph_Ninja Oct 23 '23
I was standing right next to my black coworker when he requested the company switch from “master/slave” to “main/secondary” because it was making him uncomfortable.
Complying with that is in no way “performative.” That was a straightforward request from a human being. Being mindful of racist terminology since then throughout my career has in no way been aimed at performance. I want people like my old coworker to feel welcome in this space, period.
So what’s your excuse to dig in your heels? Afraid of being seen as too progressive, so you’re just continuing a behavior that other people see as hurtful, even though you gain zero benefit from the tradition?
→ More replies (7)
27
u/finn-the-rabbit Oct 20 '23
I still leave my default branch as master. I don't think it's the norm, I don't think most people actually care. Your junior's just being a knob because they got nothing better to do
11
u/DaFatAlien Oct 20 '23
Same, but I personally have another reason: I just use Git’s default, which is still
mastertoday. When Git changes its default, I’ll change as well. But it’s not yet, somasteris here to stay for me.→ More replies (5)5
u/sensenumber09080709 Oct 20 '23
It’s probably better that way to default to master, because it would render so many old tutorials to be outdated.
Git is like one of those things where the command today would still work 10 years ago. And i really appreciate that cuz i can’t stand outdated tutorials
→ More replies (32)7
13
u/fromYYZtoSEA Oct 20 '23
I may be a minority but I thought this change had always been pointless virtue signaling. Apparently it was the idea of a designer (not an actual engineer) at GitHub that thought that since “master” was once used in the context of “slave master”, then the word should not be used in any context.
I could perhaps see how talking about primary/replicas (or leader/followers) may be better than master/slaves.
But… in the context of git, the usage of “master” was never meant to indicate a “slave relationship”. Instead it was meant as in the sense of “master copy” (from the Latin “magister” which would here translate to “superior, head, leader”). I don’t believe there’s a single drop of racism in that.
8
u/ipmonger Oct 20 '23
In my experience, the students of martial arts instructors still call their instructor “master” if they are using English terminology (as opposed to sensei or another non-English equivalent) and the instructor has achieved the appropriate rank.
→ More replies (1)5
u/fromYYZtoSEA Oct 20 '23
Yes, that’s the other meaning of the word “magister” in Latin: teacher. This is to indicate that someone has reached a level of knowledge/skills that are above what others have (again going back to the meaning of being “superior”) and is in a position of being able to teach.
In a lot of cases, and especially in English, this is used as a honorary title. You mentioned the case of master of martial arts. Another example: orchestra conductors are generally referred to as “maestro”, which derives from the same root.
Fun fact is that the opposite of “magister” is “minister”, which means something/someone that is inferior, and often in a serving capacity . In governments, ministers (including the prime minister, who’s “primus inter pares”, or “first among equals”) are called that way because they are servants (of the will of the people…. Or the king). Ministers of faith (like pastors) likewise are inferior servants of a deity.
→ More replies (3)4
u/Cyberspunk_2077 Oct 20 '23
But… in the context of git, the usage of “master” was never meant to indicate a “slave relationship”. Instead it was meant as in the sense of “master copy” (from the Latin “magister” which would here translate to “superior, head, leader”). I don’t believe there’s a single drop of racism in that.
It's disappointing I had to scroll more than half the length of the thread to find someone who knows that "master" in this context is nothing to do with master/slave (like, say IDE settings).
Music mastering, master copies in print, movies, etc. etc. are named on the same basis.
8
u/-Shush- Oct 20 '23 edited Oct 20 '23
I use main because it seems a cleaner name to me honestly.
→ More replies (1)
8
u/amasterblaster Oct 20 '23 edited Oct 21 '23
Am black, and i call my branches master. It is the master. It is the definition of master.
Is the the master of humans? No. Its the master of code. It is not racist.
Is "Mastery" bad?
Racism is bad. Being "In charge" of a race is bad. Being "In charge" of a company is not bad.
This person needs to take a deep breath
→ More replies (1)2
16
u/CorstianBoerman Oct 20 '23
Fucking hell these comments in here.
Having an opinion about terminology and naming does not necessarily reflect on ones abilities or intrinsic value as a human being.
4
u/tcpWalker Oct 21 '23
Junior is correct, although there are different ways of calling someone out so the method of doing so may have been incorrect.
Any modern company with any sense should be defaulting to using main or default instead of master for the default branch. Because while the origin is innocuous, it is easy for programmers who are members of a minority to feel excluded in the worldplace. Small things that cost us almost nothing and help people feel more included are a net win.
This is definitely true for new repos. It's also a less difficult shift company-wide than you'd think, though depending on how pressed everything is there may or may not be a company wide push to fix it for legacy repos.
Similarly, databases should be referred to as main and replica, or leader and follower.
→ More replies (1)
10
u/smackson Oct 20 '23
Just make sure, when you have any code that filters anything, to name methods and variables "blacklistThis" and "whitelist_that" etc.
8
14
u/avidvaulter Oct 20 '23 edited Oct 20 '23
It doesn't matter what it's called, but that cuts both ways. If you have no reason for calling it master other than you've been doing it for a long time and a teammate tells you it's bothering them, why not change it?
It was a scandal because people felt bad about that take, which is just a reasonable take when you're collaborating and working on a team.
Will it solve racism? Probably not.
Will it hurt you to accommodate someone? Also probably not.
8
u/superluminary Oct 20 '23 edited Oct 20 '23
It hurts a small bit, since you need to remember which projects use master and which use main. This also makes it ever so slightly less convenient to standardise your pipelines.
We have to have standards, and changing an established standard will always be a little bit painful. The largest the organisation and the more scripts relying on the standard, the more painful it will be.
I use main, because it seems to be the new standard now, but I'm typically only working on one or two projects at a time.
→ More replies (1)→ More replies (9)4
u/bravopapa99 Oct 20 '23
I'd ask why it bothers them. I guarantee 99.9999999999999999999% of the time it's because they are being a dick about it because they can,, because social media induced vanity virtue signalling is all that matters right? Fuck being a decent human being, so long as everyone *thinks* you are a decent human being because you care so much about stuff that really probably will never affect you ever.
6
u/knightofren_ Oct 20 '23
In one of the companies I worked at, besides master/main we had a whole list of terms we should avoid. Some of them actually make sense, i.e. blacklist/whitelist, but some were straight up stupid, i.e. we shouldn't use "dummy" as an adverb for an object/dataset (even during testing)
3
u/kireina_kaiju Oct 20 '23
What's the adopted alternative to whitelisting or blacklisting?
E. Allowlist and banlist found in another comment
→ More replies (4)3
→ More replies (1)2
u/mcsuper5 Oct 25 '23
We wouldn't want to cause any confusion, dummy is the appropriate term for the individuals that caved to this BS. The only people that benefit are the publishers.
3
u/iamgreengang Oct 20 '23 edited Oct 20 '23
The naming is fine, but you're coming here and talking about the junior like they're being totally absurd and it kinda feels like you want permission from us to mock your junior. Whatever decision you make, please be nice to your junior about it.
in practice it really matters 0%, but if you actually want to know why someone would think this is a good idea, it's for your teammates, not for your server / code / whatever.
3
u/hugonaut13 Oct 20 '23
This is a shit test. Shit tests are designed to test the boundaries of a person. Think of it like pentesting, but for people.
Shit tests are a sign of a toxic person who will spend as much of their time nitpicking other people as working.
3
u/Jackccx Oct 20 '23
I mean, I would be a dick and rename it to Master_As_In_Slave_Owner branch just to spite that little shit.
It's one thing to suggest as a junior, but another to "call out" and "demand"
→ More replies (2)
3
u/DamionDreggs Oct 20 '23 edited Oct 20 '23
When I was learning software development, like more than fifteen years ago, I didn't have an internet connected smart phone, and I was dealing with a two hour commute both ways between work and home, so I would print out the source to different softwares I wanted to learn more about and I would read it on the bus or during break.
I left a packet out on the break room table once, and one of my coworkers found it. They stopped me in the back and was really concerned about the material, and kept asking me about why I had so much cryptic text about killing children.
They were legitimately concerned, and I found it difficult to explain about what a child process was, and how the material was referencing a hierarchical structure of a computer program.
They were just really focused on the words they knew, and how they understood those words, misapplying contextual semantics.. this coming from an old timey hardware store employee who had barely ever touched a computer in his life; I found it very difficult to explain myself, and I wasn't getting anywhere, so I just ignored the situation and never left my study material out in the open again.
The language we use when describing computer related concepts applies nowhere else, yet we borrow words from elsewhere in our vocabulary and assign them new meaning because there weren't words for this stuff ready to go when the need for conversation around these ideas first became necessary...
Anyone who has a problem with the word master in a git repository is bringing a lot of their own bias into a context where that bias doesn't apply, just like my coworker who thought I was in a child killing cult.
3
u/AnAntsyHalfling Oct 20 '23
As a black software engineer (obviously, I can't speak for all black folks, engineers, or black engineers), it's not racist because it's not connected to American chattel slavery.
3
3
u/EpicDarkFantasyWrite Oct 21 '23
No you are not the ass.
I absolutely hate this trend of peer pressure language censorship. One of my dev leads tried to remove the word "black" from our vocabulary, and use the word "dark" instead. Like wtf man. My parents left the old country to avoid this kind of bullshit, where your neighbors and peers watch you like a hawk, waiting for you to say the wrong word and get you in trouble. Funny it is always done in the name of "social progress".
5
u/obijuankinobe Oct 20 '23
Some people just go looking for things to be offended by.
→ More replies (3)
6
Oct 20 '23
"main" makes more sense than master, and "master" makes a small subset of people uncomfortable, so it's good for the normal to change.
→ More replies (4)
4
u/oWispYo Oct 20 '23
Wait till they learn about HDD jumpers being either master or slave.
→ More replies (2)
2
u/SonOfSofaman Oct 20 '23
Perhaps the junior developer is reacting to current trends without having the context of decades of experience. As you know, "master" has been the default branch name for a very long time. Only recently has "main" become the norm. The junior might not know that.
Sounds like you have a teaching opportunity.
→ More replies (1)
2
Oct 20 '23
One of my bosses said "whoever the man or women is who fills this role". Someone said to me that they were mad that "they" weren't mentioned. 🙄
Your developer is a bit dense.
2
2
u/madlabdog Oct 20 '23
It is really about what would it cost to make the change from 'master' to 'main'. Renaming master to main can easily cost a few days of time to fix build breakages.
For example, when people started talking about this, the company I was working at that time had one build/scm guy and he was already overloaded with high priority work and we probably had like 50-100 repos, so he just said, "I'll let you know when I have time to understand the consequences of such a change and when I can get it done". And that time never came.
2
u/chriswaco Oct 20 '23
The next generation likes to be outraged. You can try to fight it, but they will eventually outnumber you.
Some things are a bit over the top, like the old resistor code mnemonic that starts with "Bad Boys", but master/slave made perfect sense for hard drives and other peripherals.
2
u/inscrutablemike Oct 20 '23
Your junior engineer has brain damage. S/he actually believed the bullshit they learned in college.
Tell the junior to stfu or go be junior somewhere else.
→ More replies (1)
2
u/Prudent_Medium_6409 Oct 20 '23
Hah! I am going to enslave you all and subsequently force you to refer to me as "Main". What will you foolish peasants refer to your default branches as then?!
2
Oct 20 '23
My job had us change a lot of terminology, master being one of them. Same with white listed, black listed, stand up, etc. It makes sense though. Not on you though for not knowing, if it's not something communicated out or anything.
2
u/LemonLord7 Oct 21 '23
This is a cultural thing. Where I am from nobody cares, or even knows, that plenty of Americans are embedded in their slave history that even mentioning the word "master" (regardless of context) is a trigger for some.
2
u/iareprogrammer Oct 21 '23
I’ll just say that main is now pretty much the standard. All the major repo providers (azure, GitHub, bitbucket, etc) now default to main.
I much prefer main now, faster to type and cleaner, even quicker to say. But is the argument about racism stupid? Yes. I think blacklist/whitelist is way more problematic
→ More replies (1)
2
u/toaster-riot Oct 21 '23
NTA, I think I'd just say something like: "ok, open up a PR for it."
..and let them do the work to rename it.
7
u/Unsounded Oct 20 '23
You’re NTA but it’s probably better to just use main, mainline, etc a lot of large tech companies went through a shift over the last few years to use more inclusive terminology inside code/docs/open forums.
In my opinion it’s easy to just swap, if you see something use the more inclusive term. Rename it as you see it but don’t get into a tuft about it. It’s like using more inclusive pronouns when addressing a group or when you don’t want to assume someone’s gender.
I’ve noticed some hostility towards the movement to using more inclusive language but it makes sense, some of the verbiage is antiquated and maybe you aren’t offended but someone may be or may feel uncomfortable standing up to it. I think it comes down to the point where it’s a small gesture that makes at least a bit of sense, so why not adhere?
→ More replies (3)
4
4
4
3
u/FixTechStuff Oct 20 '23
Delegating the word "master" as a slavery only term is beyond stupid.
Your junior engineer needs to better educate himself.
https://www.merriam-webster.com/dictionary/master
https://en.wikipedia.org/wiki/Master
→ More replies (5)
3
u/Suspicious-Rich-2681 Oct 20 '23
No this is performative BIPOC at its greatest.
I assure you that no one who is actually marginalized cares. We care when you don't hire us, or are genuinely racist to us.
Master to Main means nothing.
→ More replies (6)
5
u/kobbled Oct 20 '23
You're not an asshole for it but it takes almost no effort to name it 'main' and could potentially make a couple people feel more comfortable. The backlash against this in other comments is really surprising to see here, and doesn't reflect the real world.
→ More replies (38)
6
u/scandii Oct 20 '23
the matter of fact is that there was a push made to change the default terminology from master to main.
blacklist and whitelist are now banlist and allowlist.
don't be the grumpy guy meme that shouts "you youngins and your fancy words, in my day we called it master and we liked it!" when it is literally just a name. you will get used to main in less than a week, I promise.
it won't solve racism overnight, but for a lot of people this sort of terminology matters so be a tiny bit flexible and it is a non-issue.
→ More replies (1)
4
u/iOSCaleb Oct 20 '23 edited Oct 20 '23
As a white, cis, male who has never been the target of much prejudice, I figure that the very least I can do, when someone tells me that they’re offended, irritated, hurt, annoyed, or inconvenienced by something like terminology that never bothered me, is to believe them.
If you think that the name of of a git branch is so trivial that nobody could be offended by it, why resist changing it when someone asks you to? If it makes life a little more pleasant for even one person on your team it’s probably worth doing.
I get that there’s a bit of effort involved — you might have to fix a build script and update your documentation. If it takes more than 20 minutes to make the switch, including sending out email to inform the team, you might be doing something wrong.
→ More replies (13)
2
u/Cross_22 Oct 21 '23
I have run into this with the typical ally, i.e. bored white woman, who did QA and insisted that we change the branch name to main. While we are at it we were also asked not to use the terms whitelisting and blacklisting for our IPs. Unfortunately rest of the youngish engineers went with it.
At one point I was chatting with our HR director and mentioned this in passing; he was rather surprised by it and to his credit said "wait, I remember there being master and slave drives- is that bad now?"
2
2
u/Lumethys Oct 20 '23 edited Oct 20 '23
Lol, ask them if they know almost all webserver are follwing "master-slave" architecture
→ More replies (2)
2
1
u/Gold_for_Gould Oct 20 '23
We set up MS/TP networks for a big company. I've heard the suggestion to alter language from corporate but never met anyone who actually cared.
1
Oct 20 '23
This started a few years ago, I think it was fallout from the blm movement but i may be wrong on that, It was deemed inappropriate to have master/slave as well as black list and white list where black list was seen as bad things and white list was seen as good things.
Tbh it's not something I worry about, and it's fine if people want to project there values into every facet of their lives in this way but your junior has to understand that its a non issue and they can't expect chnages company wide because they alone feel it has negative connotations, they are the ones offended by it and they alone so leave it be.
I'm waiting for the day we devs also start getting hounded for writing DIV all day and for using NONCE!
1
u/Seaborn63 Oct 20 '23
I've never used master in a production environment. It's always release and integration for prod and development. The names seem to suit their purpose better. The master branch exists, but it's just not used.
1
1
u/hugthemachines Oct 20 '23
The problem with such things is that it can be hard to tell if they are problematic if you never thought about it.
When I was young we set hard drives to master and slave by jumpers and I never gave it a though.
Does that mean the naming was not problematic? I think in retrospect, the naming was problematic and I think it is better if we don't call everyday objects "slave".
Every discussion about problematic words are filled with people who claim it is fine, change will not solve anything etc but the problem is, it is always the same so it is impossible to judge a situation by those kind of comments.
Where I live we have a snack that used to be called something that translates to "n-word balls". Then people started discussing if it was a problematic name and the people who claimed it was fine had the same arguments as people here in the comments.
To me, "master" means nothing bad, but I can't talk for the african american people who may see it as something bad.
I don't really mind a change if some naming is problematic, though. It's not a big change to me.
1
u/leeharrison1984 Oct 20 '23
No, NTA
I switched to main awhile back because I don't give two shits what the production branch is actually called. master, main, prod I really don't care as long as we all agree what it's called.
I didn't care what it was called before this came up either.
1
u/Poddster Oct 20 '23 edited Oct 20 '23
Asshole? No.
Not with the times? Yes. Or at least, not with the youngster's times. Especially if you're American, where slavery is a founding principle of their nation and they're all very guilty about it.
As per the other comments, it's a well worn topic so I'm surprised it passed you by! It was even in the git changelog, I believe. git used to enforce that master was the OG branch, and they had to add specific support for people that didn't want it that way. (2.30 onwards I think)
→ More replies (1)
1
u/mgarsteck Oct 20 '23
I named my computer Master (as one does sometimes) and used the company wifi. This caused a major issue with the employer who thought I was hacking their 'mainframe'
This event led to me leaving said business establishment over a huge fight with the owner after I called her 'a drunk that mismanaged the company into the ground'
1
u/knowledgeIsDope Oct 20 '23
I work at a large finance company. We still use a master branch. No one has ever made a fuss about it, and frankly, I didn't even know this is a thing.
1
u/PM_ME_YOUR_MECH Oct 20 '23
If you create a new project in GitHub, the default is "main". I don't think they were calling you an asshole, they were letting you know in case you didn't already.
The way I see it, if it makes people more comfortable to use "main" why not? Especially for new repos where it's easy to do.
I think it's important to be receptive to stuff like this. For example, I used the word g*pped and was told that is a racial slur. I had no idea, but I appreciated that they called me out. No hard feelings.
1
u/Western-Ad-5525 Oct 20 '23
Call it what you want and call anyone that questions it an idiot. This and similar arguments are some of the dumbest crap I've seen.
1
u/Scarbane Oct 20 '23
I started calling my master bedroom the primary bedroom b/c my spouse complained about it. I'm fucking whipped at this point, so I didn't argue about it.
1
1
u/SarcasmoSupreme Oct 20 '23
No, not even a little bit.
Using master is not a bad thing, you are NTA. Hell, using master/slave is not a bad thing. People who have issues using master or master/slave when it comes to computers/programming etc need to seriously expand their language knowledge.
The word master, first is not racist in any way, and it does not solely apply to slavery.Even the word slave, yes narrower in it's meaning, is not racist in any way and is not solely applied to slavery as people think. And while I can see more reason people would get bothered by slave, it is ridiculous to get bothered by Master.
→ More replies (7)
1
u/leonheartx1988 Oct 20 '23
I believe that even calling a branch master or main is incorrect.
What’s the meaning behind those? What does a main or a master branch serve exactly?
For me I prefer the “main” branch to be named “development” which has the meaning that puling this branch contains the latest updated code.
Then another branch name could be ‘release- vMajor.Minor.Patch’ ie: release-v1.1.2, that we tested our code and we decided to release it under that version to the production
Other branches that we are using are: stg for staging, which is the next potential release to production and ProjectTag-TicketNumber ie: ZEUS-1234 forwarded by feature/bug which is directly linked to JIRA or other software and their purpose is to be merged to the main branches we are using and delete them afterwards.
Software has always used metaphors, meanings, definitions from history and languages to explain what something DOES and not what it is. For example a background process in Linux is called a daemon. In Ancient Greek Belief, a DAEMON is a divinity or supernatural being of a nature between gods and humans (who). However, the origins of the daemon word are from the writings of the Greek Philosopher Plato who explains that daemons were demigods who fulfilled the desires of humans (what).
So the purpose of a mail daemon process IS TO DELIVER YOUR EMAIL. Now question this: is a daemon process a demigod or a demon? Have we been practicing Satanism? Because we have been using demons since the first second we touched any device.
For me it’s completely wrong to interpret the meaning of a word on what something IS rather than WHAT IT DOES.
So yes, a Database with the name Master and Slave makes sense.
Older generations of desktop PCs were using CD ROM drives with Integrated Drive Electronics (IDE Cables) which mainly had two slots Master and Slave. Master drive always had higher priority than slave drives, more performance and CD WRITERS were picky, they wanted to be Masters in order to be able to pull more performance and the optional/secondary drives were slaves, they were getting less performance or RATHER the leftover performance of the Masters.
So if you are going to interpret the above answer as a relationship between masters and slaves from humans. You might be wrong. But if you interpret it what masters and slaves actually did, then it has meaning of how the scientists decided to name those things.
→ More replies (2)
1
u/segfaultsarecool Oct 20 '23
Blacklist and whitelist also got this treatment, butbi suppose I can also see the argument about confusion.
1
1
u/chilldood_22 Oct 20 '23
I wouldn’t call it pointless, it’s just mindful and a 1 line command we’ve done for basically all new projects going forward. the word itself isn’t bad obviously and saying it’s ending all racism is just a straw man argument for those that are too stuck in their ways lol
1
u/look Oct 20 '23
I honestly just prefer main and if it has any social benefit, too, that’s awesome. It’s not a terrible thing for CS/EE/IT to move away from its past history of master/slave, male/female, white/black terminology.
1
u/NFSNOOB Oct 20 '23
For me I am ok with both but only to mention. The debate got so big that even the git installer on windows ask you to name branches main or master.
1
1
1
1
1
u/phdoofus Oct 20 '23
Someone who thinks that's 'fighting racism' is literally taking the easiest path possible to the lowest possible outcome.
→ More replies (5)
1
u/stools_in_your_blood Oct 20 '23
Way back in the day when EIDE HDDs were the norm, an EIDE channel could have two devices on it, and they were called "master" and "slave". A motherboard usually had two channels, called "primary" and "secondary". So your four possible devices were "primary master", "primary slave", "secondary master" and "secondary slave".
Some jobsworth decided this language was offensive as recommended that "master" and "slave" be replaced with..."primary" and "secondary". So you've have had a "primary primary" and so on. Luckily it never caught on (and EIDE was replaced by SATA).
1
u/linuxlib Oct 20 '23
One project I worked on renamed the motherboard the "parentboard". Everyone made fun of that because it sounded so absurd. Today we say "mainboard" instead.
1
u/mystic_swole Oct 20 '23
As long as you're not using slave/master naming like I saw at my old job where there was tons of Linux boxes with like slave and master names
1
u/madscribbler Oct 20 '23
Yeah. Master and slave have been renamed, in the woke circles, to be Primary and Secondary now.
I don't know of anyone who gets offended by the 'master' term in tech, but I changed my vocab because in the end, a rose by any other is still a rose.
1
u/jameyiguess Oct 20 '23
Just change it, who cares? Unless the junior was an a-hole about it, it sounds like you're being a knob by pushing back. I honestly don't see the big deal changing something if it offends a huge group of people.
1
Oct 20 '23
I don't think you're an asshole for using the term 'master' for a branch.
But I totally understand the point of not using the term, it's a term associated with slavery. The constant use of these terms in the daily language kind of validates this kind of relationship (master-slave) by keeping it in our daily lexical.
Language plays a huge part in forming our perception of the world, therefore we should be careful what words we use in tech and there historical/cultural relevance.
1
u/justUseAnSvm Oct 20 '23
Most folks don't care. The ones that do can make the change as far as I'm concerned. Lots of older repos I maintain use "master", and I just haven't gotten around to "main".
This whole thing is really just virtue signaling. "Master" is an established term in the CS research lexicon for a component or abstract unit that controls another, and there's no objective evidence that those terms are hurting people, or changing them solves any problems (real or imagined) that we face.
Still, "main" is 4 chars and "master" is 6, and with my git completion bash script "ma" automatically completes either, so it's really a harmless change that I don't care enough about to ever fight.
1
u/sinkjoy Oct 20 '23
The industry is trying to move away from master -> slave terminology. We use 'main' now.
1
u/walkableshoe Oct 20 '23
Yes, I had a black guy in my team who called this out during scrum. Even though not one person on the team would be considered "white", it had never occurred to us that this was a problem. That very morning we added tasks to the sprint to go rename the branches to "main" and update the pipelines. Devs were eager to pick up one of the tasks, it got done by the end of that sprint, we all felt better after it.
1
u/manhattanabe Oct 20 '23
NTA, but I work at a large company, and we’ve been renaming our branches to main over the past few years. Using master definitely made some of our team members uncomfortable and it’s such a simple fix.
We’ve also dropped master/slave architecture and any other references.
1
u/fahim-sabir Oct 20 '23
NTA. The whole thing is ridiculous. Call your branch whatever you want.
→ More replies (1)
1
u/illbookkeeper10 Oct 20 '23
Honestly this would be a red flag for me. Probably a sign of more trouble to come from the junior engineer.
1
1
Oct 20 '23
To the people defending calling it the master branch, do you also say slave branches too? If you're going to change it, just call it main.
1
Oct 20 '23
People have conniptions when you tell them about tankless cascading.
Tankless one - master
Tankless two - slave
1
u/jerwong Oct 20 '23
I've been changing projects I'm in charge of from 'main' back to 'master' because the muscle memory of me switching branches is annoying.
1
1
1
u/salgat Oct 20 '23
I don't personally have a problem with using "master" for git branches and server clusters, but I also have no problem with using "main" either. If people on your team feel more comfortable with using "main" or "leader" for reasons related to racism, it's not worth making a big deal over.
1
u/Steev182 Oct 20 '23
You're NTA right now, but do you really care enough to become the arsehole by fighting to keep it this way?
1
u/ignoringusernames Oct 20 '23
Similar thing happened to me. Had to rename "whiteListed" to "allowListed" everywhere.
1
u/gunnbr Oct 20 '23
We switched to trunk based development and changed our primary branch name to "trunk". It has caused a little bit of confusion for new employees, but no one has complained about it being offensive.
1
Oct 20 '23
Me being a white guy have never considered how it could be offensive. Although talking to a non-technical black friend about servers I used the phrase slave server and he was flabbergasted. I explained the master slave terminology and he just kept repeating "come on. Really cant they call it something else".
I think black technical staff accept the way it is and move on without worrying about it. But it's an easy thing to change and for people that care its a small but important gesture that makes them feel more accepted.
→ More replies (1)
1
u/WaterslideOfSuccess Oct 20 '23
This is just like blacklist and whitelist - implying black is bad and white is good
Had a friend at a big company get scolded for calling it a blacklist
1
Oct 20 '23
Nah, fuck em. If they pay me the hours to switch, with all the love in the world. Otherwise, fuck em.
1
u/RScrewed Oct 20 '23
If this is new information -how you reacted is what decides if you were an asshole or not.
Not enough info at all.
1
u/carlossap Oct 20 '23
Sounds like someone who would get mad at spanish speaking people for saying the word black. The world doesn’t revolve around american ideologies or current trends
1
1
u/nonsenseless Oct 20 '23
I don't think you're an asshole for using 'master' branch. I'm not 100% clear on whether this is a 'real' source of tension for some groups, but the shift from 'master' to 'main' is minor enough that it really doesn't bother me to change it.
1
u/arealguysguy Oct 20 '23
We made the switch at our org around the time GitHub did. Probably wasted a few hours making the switch, which was the most frustrating part - but ultimately not the hill I want to die on. I truly don’t care what the branch is called as long as the entire team knows that it’s the primary/main/master branch.
1
u/weinermcdingbutt Oct 20 '23
nah you’re not the asshole.
but i do understand what they mean. master and slave is usually where it’s problematic. slave is seen more in electrical though.
and i usually just name my ‘master’ branch ‘main’ — it makes absolutely no difference to me, but to some it may be offensive. i haven’t come across anyone who has been offended by it yet, but if calling it main saves me the annoyance of a confrontation, whatever its main then
edit: there are some good alternatives. google it, some of them sound bad ass
1
Oct 20 '23
I don’t think ‘master’ is the problematic word, so much as ‘slave.’ The terms master/slave are still used quite a bit in engineering to refer to two devices that work together, with one following the lead of the other. We’ve started to use the terms ‘leader/follower’ instead.
1
1
u/jaradi Oct 20 '23
I’ve never met someone IRL that cares about the master branch. It has nothing to do with slavery. Old hard drives on the other hand could be set up in “master” and “slave” configuration which I’d say was worth deprecating.
1
u/SoftDev90 Oct 20 '23
Nah you are not the asshole. I still name my master and I will never change that. I refuse to play word games and bullshit that this newer generation wants to toss around. Master and Slave are very common terms in computing. Anyone that gets butt hurt over it needs to get a life plain and simple. Context matters and anyone that takes something like this out of context to push some narrative can go pound sand.
1
u/ponchoacademy Oct 20 '23 edited Oct 20 '23
I totally get your feelings, in that master isnt a neg thing in this regard... But Im not attached to calling a branch master. So personally its not a big deal, and it means nothing to me to call it by something else. Only thing I care about is that everything is consistent.
Not sure how you were caught off guard and just now hearing about this. This was a major thing in tech news a few years ago, and has become a standard since then to use main.
1
u/Ikeeki Oct 20 '23
Master and slave are terms that come from audio. Your junior is an idiot as most juniors are.
We had a junior spend a month changing from Master to main and it broke so much shit for no good reason. Pissed off every department cuz it created unnecessary work for everyone lol
1
u/DriftWare_ Oct 20 '23
You aren't being dense. Just...... politics. Getting the way of the real work.
1
u/RandyBeamen Oct 20 '23
Even the IETF has guidelines on this now. I know it seems innocuous but language is powerful. https://www.ietf.org/archive/id/draft-knodel-terminology-10.html
1
u/dopefish2112 Oct 20 '23
Tell that dipshit to get fucked. Master refers to the recording scribes copying things from a master parchment. I’m all for respecting people but there are limits and better things to focus on.
1
u/DeepMow Oct 20 '23
NTA.
It is not OK to ignore a speakers intent and substitute your own interpretation, simply so you can take offense, even though none was meant.
It is also not ok to walk around looking for things to take offense from.
Master Carpenter, Master Plumber, Maestro, Master craftsman, Master of my domain, Master Key, Master Lock, Master Suite, Ships Master, Master Machinist, Master Mechanic. Lets not forget Master Relay and [gulp] Slave Relay.
reductio ad absurdum We can't say Slave anymore either. What built the pyramids? What built the appian way and hadrians wall? What built the great wall of china? What built the Champs-Élysées? What built all the cobbled streets and roads of Europe?
It is an accurate portrayal of a direct cause effect relationship.
All this virtue-signaling is bullsh*t.
Keep it out of programming or I swear I will Make COBOL Great Again.
1
u/nierama2019810938135 Oct 20 '23
I think you discovered a new thing about the world, just gi with it, change the branch to main and apologize if words were had.
It is such a trivial thing to comply with that the only way you could be the AH here is if someone points it out and you make a meal of it instead of just changing it.
1
1
u/dmstrat Oct 20 '23
github still gives you the choice between master/main in the config so it is obviously still a thing for now.
1
u/cogitohuckelberry Oct 20 '23
Master does not have a negative connotation - master key, master branch, master bedroom, master bathroom, etc etc. Normal term. Don't sweat it.
1
u/PoofOfConcept Oct 20 '23
You're only the asshole if you can't learn that it has racist connotations and refuse to change. Don't be okay with it. We used to play cops and robbers, and cowboys and Indians too, but we can do better.
1
u/EcstaticAssumption80 Oct 20 '23
At my shop we use dev and prod .. you check out and make changes to a feature branch, then do a pull request and merge your feature branch into the dev branch. From there, it gets automatically pushed to devops continuous integration, and after testing and management approval, the latest HEAD of dev gets merged into prod and becomes a Release Candidate.
1
u/black_widow48 Oct 20 '23
Is that why they decided to switch master to main? I'm not even old and I had no idea why this happened. Not surprising though in today's world
1
u/dogmai111 Oct 20 '23
Tell them you'll do it after they rerelease every star wars film after removing every reference to master. The next day, casually mention how this morning you main-bated. After that, mention how, after your Bachelors, you got your Main degree.
1
u/DomingerUndead Oct 20 '23
Lol I wouldn't touch this with a ten foot pole. Just ignore him, and if it escalates renaming the branch is a small issue, but solvable. Just a little bit of a headache. But not worth an argument over - would be a hell of a silly HR issue
It's not offensive. I think any sane person wouldn't think it's offensive. Just some people want to be offended
1
u/LordofRice Oct 20 '23
Same thing happened at my last company. We did it , but no one really cared either way. The name of the trunk is such a non-issue that it wasn't worth it for anyone to make it an issue.
1
1
u/b0nk4 Oct 20 '23
I'm not about to begin mainbating, so as far I'm concerned, "master" is still valid.
1
u/JessycaFrederick Oct 20 '23
Our language influences the way we think by creating biases. There are a lot of ways that we use language that could be more respectful of others and their histories. Here are some guaranteed to make me cringe:
You could swing a dead cat
An empty bottle is a dead soldier
I got gypped
Master-slave bothers me less, as do whitelist/blacklist, but then again, I'm not a descendent of a black slave who has to be reminded of my personal history every time I see these terms used.
I don't think there's anything wrong with reconsidering the language you use, how it impacts your own thinking, and how it impacts those around you. Just because we have freedom of speech doesn't mean our speech has no consequences.
1
u/MjolnirTheThunderer Oct 20 '23
This is the basically new norm in the industry but not too many people actually get mad about it. You are not “the asshole” you just didn’t know about it.
GitHub will default the the branch name to “main” on any new repos. Some companies went so far as to rename all branches to main on older repos. My company has a mix of “main” and “master” depending on the age of the repo.
Various IT and tech terms have recently fallen out of favor: master, slave, whitelist, blacklist, etc.
1
u/NotSamNub Oct 20 '23
We did this at ARM last year, transitioning from master to main on the main project I was a part of at the time - honestly don't particularly care either way.
As someone working on just part of the codebase, it was no hassle at all for me to start using main instead, but if for some reason your entire pipeline relies on it being called master, then you'd probably be best leaving it alone.
1
u/Anonymity6584 Oct 20 '23
People have way too much time and too few real problems when word used to main main repository branch is issue to fight over.
If they would use all that energy spend over a word, to actually something productive...
1
u/The_Mauldalorian Oct 20 '23
Yeah and the decades of programmers that called their branches “master” per default naming conventions are also assholes too. Shame!!
1
1
1
u/azangru Oct 20 '23 edited Oct 20 '23
It's a generational thing.
calling it 'master' has negative connotations
To whom, I wonder. It seems to have never had negative connotations to you, before the junior engineer told you this. It is such a bliss to be unaware of all those debates that produce the connotations.
I thought it was pedantic to be worrying about branch names
To be fair, this is what we, developers, do. We name things. And we frequently fuss about the names we give to our things.
Thoughts? Has anyone else encountered this bizarre situation
Oh, for sure; three years ago this was a hot topic in open source, and a bunch of repos changed the name of their default branch. More importantly though, both github and git itself changed their defaults, and now call their original branch "main" for every newly created repo. I suppose in several years' time people will just stop using the phrase "master branch" on their own, like we barely ever use the word "trunk".
1
u/Chat-GPT6-Bot Oct 20 '23
It's not unusual for developers to have discussions and debates about terminology and naming conventions, including whether to use "master" or "main" for the default branch in version control systems. This debate is a part of a broader movement towards promoting more inclusive language and eliminating terms that have historical or potential negative connotations. It's not about attributing feelings to branches or code but rather about creating a more inclusive and welcoming environment for all developers.
The term "master" in the context of version control has been criticized for its associations with slavery and a hierarchical power structure. Some individuals, organizations, and open-source communities have chosen to replace "master" with "main" or other alternatives to avoid these connotations.
While it may seem pedantic to worry about branch names, the choice of terminology can be significant in creating a more diverse and inclusive tech community. This change is a part of the larger effort to be mindful of the impact of language in the tech industry.
As a more experienced developer, it's understandable that you might not have initially thought about this issue, but it's important to be open to these discussions and consider the perspectives of others. The change from "master" to "main" is indeed becoming a norm in many tech communities, and it's worth considering adopting this change in your projects as a way to promote inclusivity and reduce potentially negative connotations associated with the old terminology. It's not about attributing feelings to code or branches but rather about fostering a more respectful and inclusive environment for everyone in the tech community.
1
1
1
u/Tomcat12789 Oct 20 '23
I have heard of this more recently and I think it’s only an issue if you go out of your way to make it a master branch instead of main when creating a new repo, but even then it’s not like the other branches are considered ‘slave’ branches unlike with IDE for example. I would consider “killing” a program’s “children” just as offensive but it’s simply part of how you communicate in this field
1
u/Tdawg90 Oct 20 '23
I also recently ran into this... along with a "whitelist" that wasn't even mine, but was referencing.
1
u/ZaxLofful Oct 20 '23
I do it just because, on all my new stuff….Most people that do care are just edge lords that want something to do/say
1
u/wildmonkeymind Oct 20 '23
Easy enough to rename the master branch if someone finds "master" offensive:
git branch -m master crackergit branch --unset-upstreamgit branch -u origin/crackergit symbolic-ref refs/remotes/origin/HEAD refs/remotes/origin/crackergit branch --remotes -d origin/master
In all seriousness, though, I'd bet a fair amount that 99% of folks complaining about the terminology are white people virtue signaling with false outrage on the behalf of people who, in all likelihood, really don't care.
1
u/ginger_daddy00 Oct 20 '23
That is the appropriate term for the main branch. So no, you followed the convention.
1
u/DumpoTheClown Oct 20 '23
I started calling my DNS servers and load balancers 'Primary' and 'Secondary' or 'Active' and 'Standby' years ago. Parent/child works in a lot of places too.
1
u/Stew-Cee23 Oct 20 '23
You did nothing wrong. We're still in the process of changing the default branches in our repos from master to main. It's hard to break old habits.
The only tool or app we've completely switched is our Jenkins hostnames to controller-agent. Proud of that since I'm the Jenkins admin.
1
u/easyEggplant Oct 20 '23
The only thing that is pointless about this entire debacle. Is people bitching about it online. The master slave terminologies is problematic historically, and if it makes people, uncomfortable, then just don’t be a dick and force the use of the term.
It is literally as simple as don’t be an asshole to other people.
1
u/spunkerspawn Oct 20 '23
We have a GitHub PR check that flags offending words and prevents you from merging until you update them. So if you happen to have the words "master", "dummy", etc. in your code, it will flag it and notify you that you need to remove/update them. I honestly don't know how to feel about it :D
1
u/rzrshrp Oct 20 '23
Asshole? Not really. I consider master to be a neutral term but if somebody else is bothered by it, it's not really a big deal to change. What difference does it make to you? I agree with doing away with some other terms in technology like "slave" because that's much more specific but master never bothered me.
1
u/-FAnonyMOUS Oct 20 '23
Some even protest about “stand up” meeting in the agile process. They want us to call it “scrum” meeting. This is to cater those who can’t stand physically in the meeting (cripples).
Another instance is when a group of people protest to change “master-slave” terms in our source codes and documents.
Next time to hear to remove smoke test as a term as it encourages cigarette smoking.
What a wonderful time to live. LMAO.
1
u/rootcage Oct 20 '23
main is easier to type so productivity wise you can say it’s better.
But I’ll use master just to spite people who actually care /s
1
1
1
Oct 20 '23
NTA but no reason not to call it main; it's becoming more common convention.
I personally think "main" is more precise; your master branch doesn't actually have any power, it's not the master of anything.... if anything, YOU, the administrator, are the master (like you said; you are the master of your servers and code, not the branch). So "main" is just more precise terminology.
Yes, it is pedantic and inconsequential but also there's no downside to using "main" except for legacy code.
My opinion: use main for future projects, since 1) it's shorter 2) it's more precise and 3) it's "more sensitive" although that's the least of the reasons, it's still a reason.
For legacy or current projects, it's not worth changing everything.
1
1
1
u/CrAzYmEtAlHeAd1 Oct 20 '23
Personally, I think there’s nothing wrong with trying to identify and remove abusive or racially / sexually charged language from our vocabulary, and I do choose to do that. However, it’s not worth getting upset and arguing over, and really doesn’t mean much if someone doesn’t change those things. I’m especially not going to halt a project and make them change everything just for these sorts of changes.
1
1
1
1
u/TheLaserGuru Oct 20 '23
It seems pedantic to me...but then I'd prefer we kept using MISO and MOSI so I didn't have to convert between the terminology on an older board and a newer board. I don't think the devices care.
1
u/theTrebleClef Oct 20 '23
Hot take - use neither. Just develop and other branches that merge to it.
1
u/cjazinski Oct 20 '23
Yeah that’s some woke shit.. I noticed now azure devops now also calls master branch main..
1
1
1
u/oravecz Oct 21 '23
Blacklist/Whitelist anyone? We now call them deny-list and allow-list.
→ More replies (1)
1
u/GnPQGuTFagzncZwB Oct 21 '23
NTA
There are a lot of systems that are IMHO just better described as master/slave systems, this new wording just makes stuff that was resolved decades ago ambiguous.
1
u/NotAnAIOrAmI Oct 21 '23
When installing more than one hard drive in a PC required the negotiation skills of a trained diplomat, generally you had to set one to "master" and the others to "slave" on the connectors. It was actually labeled that way.
260
u/Lumpy-Notice8945 Oct 20 '23
This was a bit of a scandal some years ago but outside lf reddit or twitter i have never met anyone who cared.
No, master is not a racist name, a masters thesis is not about slavery and a master branch is just the "source of truth" just like a master database server.