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

Programmer Humor

31779 readers
412 users here now

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

Rules:

founded 5 years ago
MODERATORS
all 18 comments
sorted by: hot top controversial new old
[–] CaptainBlagbird@lemmy.world 29 points 7 months ago (3 children)

LaTeX .... Master-Slave ...

[–] Ramenator@lemmy.world 24 points 7 months ago (1 children)

"Dammit, for some reason I can't kill all the children, a few of them always survive, I must have a leak somewhere"

[–] _edge@discuss.tchncs.de 2 points 7 months ago

They respawn or become zombies.

[–] backhdlp@lemmy.blahaj.zone 6 points 7 months ago (3 children)

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

[–] kogasa@programming.dev 9 points 7 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@sh.itjust.works 2 points 7 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.

[–] kogasa@programming.dev 7 points 7 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.

[–] _edge@discuss.tchncs.de 2 points 7 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.

[–] onlinepersona@programming.dev -1 points 7 months ago

It's all Latex's fault :'(

CC BY-NC-SA 4.0

[–] AVincentInSpace@pawb.social 1 points 7 months ago

It's pronounced "latek"

[–] xmunk@sh.itjust.works 18 points 7 months ago

Don't forget to pet the net cat.

[–] lung@lemmy.world 4 points 7 months ago (1 children)
[–] onlinepersona@programming.dev 4 points 7 months ago (1 children)

Naming things is hard and people really suck at it. Many new projects just pick a random word out of the dictionary (or encyclopedia) that has absolutely nothing to do with the project or company and mess up internet searches forever.

The game "Brand name or dictionary entry" would probably be very difficult to play.

CC BY-NC-SA 4.0

[–] agressivelyPassive@feddit.de 3 points 7 months ago

That's why I chose random first names for my internal toy projects at work.

Worked great, until I found out, that a pretty stupidly named tool is now kind of a cornerstone and its name was thrown around in conversations with the upper management.

[–] Andrew15_5@mander.xyz 1 points 7 months ago (1 children)

*non-windows-fans /s

(I hate C# and I hate .Net)

[–] kogasa@programming.dev 6 points 7 months ago (1 children)

.NET Core is highly multiplatform. Windows still gets preferential treatment but there are few obstacles to .NET development on Linux. It's a nice ecosystem that's increasingly open source. All that said, obligatory fuck Microsoft.

[–] Andrew15_5@mander.xyz -3 points 7 months ago* (last edited 7 months ago)

All this multiplatform stuff is bullshit according to my experience. The dotnet CLI is slow, files still use CRLF line ending, I also remember CLI autocompletion was not great. C# has only one working LSP server implementation that sucked ass in VS Code and Neovim. It's kinda like Java DX, but at least with Java the DX is equally isn't great on any OS. Maybe I like C# more than Java as a language, but I hate everything else. I also hate Java, btw.

Also .Net wasn't always OSS, therefore it has proprietary history (Java has less of the same).