this post was submitted on 21 Jan 2024
225 points (100.0% liked)

Programmer Humor

854 readers
12 users here now

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

founded 5 years ago
MODERATORS
 
top 50 comments
sorted by: hot top controversial new old
[–] davel@lemmy.ml 55 points 10 months ago (1 children)

Try not to make memes that imply you’re not anti-slavery.

[–] kaida@feddit.de 43 points 10 months ago (1 children)

I‘m anti-slavery but that’s just not the reason I use main as default branch

[–] TxzK@lemmy.zip 58 points 10 months ago (7 children)

yup same. I hate slavery just like anyone else but fail to see how naming a branch master has to do anything with it. Next are they gonna claim that master's degree is pro slavery or something

[–] agressivelyPassive@feddit.de 39 points 10 months ago

Bachelor's degree means you're not married, so obviously an incel.

[–] jlow 13 points 10 months ago (2 children)

https://edition.cnn.com/2020/07/06/us/racism-words-phrases-slavery-trnd/index.html

Tldr: They're a reminder of slavery, some people feel uncomfortable using / hearing them, it would not be hard for you to make their lifes a bit better by not using them but you can obviously do whatever you like.

[–] Gabu@lemmy.ml 14 points 10 months ago (3 children)

RIght, because the best way to stop bad things from happening is to have everyone forget they happened...

load more comments (3 replies)
load more comments (1 replies)
[–] Deebster@programming.dev 11 points 10 months ago (1 children)

I put this one in the same camp as whichever well-meaning person came up with "happy holidays". Other religions and cultures don't mind Westerners celebrating Christmas, and over-corrections like this just give fuel to the "political correctness gone mad" (now re-branded as anti-woke) crowd.

load more comments (1 replies)
[–] 56_@lemmy.ml 6 points 10 months ago* (last edited 10 months ago) (1 children)

The term "master" is often used with the term "slave" in computing: https://en.wikipedia.org/wiki/Master-slave_(technology)
So it wouldn't be odd to assume that git's use of the term "master" also refers to slavery.

[–] magic_lobster_party@kbin.social 10 points 10 months ago

although in the context of version control, the term master simply refers to the gold master, a term borrowed from the recording industry which refers to the final mixed version of a recording, and does not have a corresponding slave.

Either way, I think “main branch” is easier to say, so it’s a win.

load more comments (3 replies)
[–] rwhitisissle@lemmy.ml 53 points 10 months ago* (last edited 10 months ago) (2 children)

Instead of either, it's good to have a more descriptive primary branch:

git checkout -b dontwritetothisbranchdirectlyyougottaopenaprfirstandhaveitreviewedandapprovedandthenpasstheautomatictests

[–] Kbin_space_program@kbin.social 13 points 10 months ago (4 children)

Git checkout -b neverpushtothisbranchthismeansyou

[–] synae@lemmy.sdf.org 5 points 10 months ago

git co -b nevergonnagiveyouupnevergonnaletyoudown

[–] rwhitisissle@lemmy.ml 5 points 10 months ago (2 children)

Git checkout -b branchprotectiononlyworksifyouarenotsetupwithadminprivilegesontherepoingithubthismeansyouhowardgodammit

[–] WanakaTree@lemm.ee 3 points 10 months ago (1 children)

Y'all. At least put some dashes between the words

load more comments (1 replies)
load more comments (1 replies)
[–] Artyom@lemm.ee 3 points 10 months ago
git checkout -b dontcommitherejerry
[–] cupcakezealot@lemmy.blahaj.zone 2 points 10 months ago

git commit -m "that sign can't stop me because i can't read"

[–] masterspace@lemmy.ca 5 points 10 months ago

Still shorter than a java class name.

[–] Empathy 50 points 10 months ago

I use main because, although I never heard of anybody actually getting offended by master, it costs me nothing to use main instead. Also it looks prettier and seems to be the new convention ¯\_(ツ)_/¯

[–] alefunguju@lemmy.one 29 points 10 months ago (2 children)

I use main as my default branch because it's what Git has been defaulting to for some time now

[–] PoolloverNathan@programming.dev 14 points 10 months ago

Git's still master by default; github uses main for new repositories.

[–] kionite231@lemmy.ca 9 points 10 months ago

You mean github.

[–] hellfire103@sopuli.xyz 28 points 10 months ago (3 children)

I use master because I'm nostalgic. If it matters that much, though, I'll start using trunk (like we used to back in the days of SVN).

[–] MrScruff@lemmy.ml 10 points 10 months ago (1 children)

Don't speak the name of that horror!

[–] 0x0@lemmy.dbzer0.com 7 points 10 months ago

At least it was better than CVS

load more comments (2 replies)
[–] Omega_Haxors@lemmy.ml 24 points 10 months ago* (last edited 10 months ago) (1 children)

It speaks to the deep rooted whiteness of the industry that such a common-sense change is treated as completely bullshit even to this day.

[–] derpgon@programming.dev 9 points 10 months ago (4 children)

It speaks to deep rooted butthurtness of USA boomers and constant need to enforce their stupid ass rules to others. It's not racist, neither are blacklist or whitelist.

[–] lurker2718@lemmings.world 8 points 10 months ago (2 children)

Even ignoring the question of racism, they are still stupid names.

Imagine teaching a child about this and it asks: Why is white allowed and black not? The only answer is, because it is like this for a long time. If we name them allowlist and denylist, it is obvious to all English speaking people. Shouldn't we strive for descriptive names in programming?

However, if you use names whitelist an blacklist, you need to make the implicit connection white-positive black-negative. Yes obviously this does not make you racist if you do this in programming. But is it good?

[–] derpgon@programming.dev 5 points 10 months ago* (last edited 10 months ago) (2 children)

White - light. Black - no light. White knight - good. Black knight - bad.

These two colors have a meaning. It has fuck all to do with skin color. And if you do, then you are helping to enable "useless racism" in the form of "this offends the black community", while literally nobody gives a fuck.

Its a useless change in the sake of changing things. Everyone is tech eants the superstar and wants to say "Hey, you are using X (not Twitter in this case)! I made that, noice.".

If someone decided to change it next week to primary, would you be for or against it?

[–] bane_killgrind@lemmy.ml 4 points 10 months ago

Why is a filled checkbox positive and an empty checkbox negative

Sounds like white true black false is not universal

load more comments (1 replies)
[–] Omega_Haxors@lemmy.ml 3 points 10 months ago* (last edited 10 months ago) (1 children)

AL/BL. See, not stupid at all. You just don't want to admit you're deeply racist and that's your motivation for caring a non-zero shit about this.

Programmers will literally uproot their entire language of choice if it's required it but can't replace one definition? Give me a fucking break.

load more comments (1 replies)
load more comments (3 replies)
[–] vojel@discuss.tchncs.de 20 points 10 months ago

Oh I don’t give a single fuck about the discussion, it’s technology, not politics. I am more upset that my company has some legacy repositories with master and the newer ones with a main branch. So everytime I want to create a MR with push options via command line I need to change main to master or visa versa.

[–] words_number@programming.dev 17 points 10 months ago

I also think it's more descriptive. Just like blocklist and allowlist.

[–] ShortN0te@lemmy.ml 17 points 10 months ago (3 children)

I find it funny how many ppl complained about it when it came up. Now it is the default on github and other code forges. And now one cares anymore if it is master or main.

[–] agressivelyPassive@feddit.de 43 points 10 months ago (4 children)

It was never about the name itself, but about breaking a convention for extremely dubious reasons.

[–] Deebster@programming.dev 10 points 10 months ago

On the plus side, forcing people to support alternative branch names surely has led to better software support for a core Git feature.

[–] lugal@lemmy.ml 7 points 10 months ago* (last edited 10 months ago) (1 children)

You sound like a slave owner, ngl

I am not pro slavery but I will not free my chattel slaves. People just break with this tradition for extremely dubious reasons.

Listen to yourself!

Edit: I was thinking about putting "/s" at the end but thought it was obvious enough. I was wrong

[–] TheGreenGolem@lemmy.dbzer0.com 12 points 10 months ago (1 children)
[–] lugal@lemmy.ml 3 points 10 months ago (1 children)

Why do I keep getting this comment? Maybe I should call myself Poe in the future

[–] Deebster@programming.dev 6 points 10 months ago (1 children)

I think on the Fediverse (or just Lemmy?) I've seen more people who'd post your comment non-ironically. Or maybe they're not serious either (but they'd have to be really committed to the bit).

load more comments (1 replies)
load more comments (2 replies)
[–] Kbin_space_program@kbin.social 12 points 10 months ago

Because its a non issue to developers.

It was only a hand wringing thing by internet bloggers.

[–] cmnybo@discuss.tchncs.de 10 points 10 months ago (1 children)

Master is still the default branch when you run git init.

[–] abfarid@startrek.website 4 points 10 months ago (1 children)

Depends on your version of git, I believe.

[–] cmnybo@discuss.tchncs.de 7 points 10 months ago (1 children)

The latest version from kernel.org still uses master. It's certainly possible for distro maintainers to change it on the versions they package though.

[–] abfarid@startrek.website 5 points 10 months ago

Yeah, seems like I'm wrong. I looked up the docs on git-scm.com and it says that the default branch name is "currently master, but this is subject to change in the future". Maybe GitHub threw me off.

[–] ryannathans@aussie.zone 13 points 10 months ago

Master gang

[–] IsoSpandy@lemm.ee 8 points 10 months ago

I use master because when I do 'git init .' I get a master branch and I am lazy enough to not rename it. As for typing it later on.. . Well zsh does that for me

[–] shiveyarbles 7 points 10 months ago

Slave owning GitHub users everywhere offended

[–] progettarsi@feddit.it 3 points 10 months ago

does it count anything? like... no one's gonna find my repository anyway

[–] NigelFrobisher@aussie.zone 3 points 10 months ago

Trunk Master Race.

load more comments
view more: next ›