this post was submitted on 21 Jan 2024
349 points (91.3% liked)

Programmer Humor

33584 readers
14 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
[–] rwhitisissle@lemmy.ml 65 points 1 year ago* (last edited 1 year 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 15 points 1 year ago (4 children)

Git checkout -b neverpushtothisbranchthismeansyou

[–] synae@lemmy.sdf.org 9 points 1 year ago

git co -b nevergonnagiveyouupnevergonnaletyoudown

[–] rwhitisissle@lemmy.ml 7 points 1 year ago (3 children)

Git checkout -b branchprotectiononlyworksifyouarenotsetupwithadminprivilegesontherepoingithubthismeansyouhowardgodammit

load more comments (3 replies)
load more comments (2 replies)
[–] masterspace@lemmy.ca 7 points 1 year ago

Still shorter than a java class name.

[–] davel@lemmy.ml 49 points 1 year ago (2 children)

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

[–] kaida@feddit.de 57 points 1 year ago (1 children)

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

[–] TxzK@lemmy.zip 85 points 1 year ago (15 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 55 points 1 year ago (1 children)

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

[–] idunnololz@lemmy.world 7 points 1 year ago (2 children)

And doctors degree means you are legally allowed to perform surgery.

load more comments (2 replies)
load more comments (14 replies)
load more comments (1 replies)
[–] Empathy@beehaw.org 47 points 1 year 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 ¯\_(ツ)_/¯

[–] Ohi@lemmy.world 43 points 1 year ago (4 children)

No disrespect, but asking everyone to remove words from the English language because they may offend a small group of oversensitive people is one of the most frustrating social initiatives of our time. "Master" makes sense for the job and unless we're also putting "Slave" and "Cotton" on the dictionary chopping block, the arguement will always seem arbitrary to me.

[–] Jorgelino@lemmy.ml 11 points 1 year ago

unless we're also putting "Slave" and "Cotton" on the dictionary chopping block

Aren't we though? At least when it comes to tech, Master-Slave terminology has been largely deprecated in favor of other terms.

[–] docAvid@midwest.social 7 points 1 year ago (3 children)

The only reason you think "master" makes sense is because you're used to it. It's actually quite a weird connection to make, if you aren't used to it. "Main" is much more straight forward. And nobody is really demanding people stop using "master", so far as I am aware, it's just that people are making that choice themselves.

[–] corship@feddit.de 8 points 1 year ago* (last edited 1 year ago) (1 children)

I vote for naming this branch "mommy", since all other branches are it's offspring, and related to it.

load more comments (1 replies)
load more comments (2 replies)
load more comments (1 replies)
[–] hperrin@lemmy.world 33 points 1 year ago (2 children)

I use “secondary” as my default branch, because fuck the rules.

load more comments (2 replies)
[–] alefunguju@lemmy.one 32 points 1 year 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 18 points 1 year ago

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

[–] kionite231@lemmy.ca 14 points 1 year ago

You mean github.

[–] mlg@lemmy.world 32 points 1 year ago (2 children)

Master sounded so much cooler man

Like yeah I'm a master of linux

Literally no connotation to slavery when the word slave isn't even used in the git terminology

load more comments (2 replies)
[–] hellfire103@sopuli.xyz 32 points 1 year ago (9 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 13 points 1 year ago (1 children)

Don't speak the name of that horror!

[–] 0x0@lemmy.dbzer0.com 8 points 1 year ago

At least it was better than CVS

load more comments (8 replies)
[–] vojel@discuss.tchncs.de 31 points 1 year ago (1 children)

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.

load more comments (1 replies)
[–] words_number@programming.dev 22 points 1 year ago

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

[–] tsonfeir@lemm.ee 17 points 1 year ago (1 children)
load more comments (1 replies)
[–] MeanEYE@lemmy.world 13 points 1 year ago* (last edited 1 year ago) (8 children)

Oh, how upset I was by that decision. I still call out GitHub online every now and then thanking them for solving slavery by messing up my deployment scripts and development environments.

load more comments (8 replies)
[–] ShortN0te@lemmy.ml 13 points 1 year 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 61 points 1 year ago (12 children)

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

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

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

load more comments (1 replies)
load more comments (10 replies)
[–] Kbin_space_program@kbin.social 13 points 1 year ago

Because its a non issue to developers.

It was only a hand wringing thing by internet bloggers.

[–] cmnybo@discuss.tchncs.de 11 points 1 year ago (3 children)

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

load more comments (3 replies)
[–] ryannathans@aussie.zone 11 points 1 year ago (2 children)
[–] Chriswild@lemmy.world 14 points 1 year ago (1 children)

When you're pro slavery but only when it's with consenting adults.

Main in the workplace, master in the bedroom.

load more comments (1 replies)
[–] Omega_Haxors@lemmy.ml 11 points 1 year ago* (last edited 1 year 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 7 points 1 year ago (8 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.

load more comments (8 replies)
[–] IsoSpandy@lemm.ee 10 points 1 year 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

load more comments
view more: next ›