this post was submitted on 05 Jan 2024
116 points (88.7% liked)

Programmer Humor

32042 readers
1085 users here now

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

Rules:

founded 5 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 6 points 8 months ago (3 children)

I think that's why we're supposed to call it main now

[–] [email protected] 9 points 8 months ago

"master" in version control has no corresponding "slave," but nevertheless the "master/slave" terminology is the reason why GitHub switched to "main" and everyone else followed suit

[–] xmunk 2 points 8 months ago (1 children)

The naming isn't great still... I usually use ReadWrite instance and replica. I really wish we had some more concise replacement terms.

[–] [email protected] 7 points 8 months ago (1 children)

Main is the replacement for master for git branches, not the general master-slave pattern. Wikipedia suggests:

Other replacement names include controller, default, director, host, initiator, leader, manager, primary, principal, root; and for slave: agent, client, device, performer, peripheral, replica, responder, satellite, secondary, subordinate, and worker.

I usually use controller / worker if it's a local process or controller / remote if the subordinates are on different hosts.

[–] [email protected] 2 points 8 months ago

I know I'm old, but never found that calling a dumb machine a slave to be problemtic. The thing is supposed to obey my orders. It's in the code and code is law.

I'm also not American and never owned slaves.

[–] [email protected] -1 points 8 months ago

It's all Latex's fault :'(

CC BY-NC-SA 4.0