this post was submitted on 28 Jan 2025
1669 points (99.6% liked)

Programmer Humor

20188 readers
1469 users here now

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

founded 2 years ago
MODERATORS
 
(page 3) 50 comments
sorted by: hot top controversial new old
[–] [email protected] 3 points 2 days ago (2 children)

fd -HI '^\.DS_Store$' $HOME -tf -X rm -v

load more comments (2 replies)
[–] [email protected] 43 points 2 days ago

__MACOSX folders hither and yon.

[–] [email protected] 7 points 2 days ago

DS DS DS D-not gonna work here anymore, anyway.

[–] [email protected] 29 points 2 days ago (5 children)

Just gitignore that. Same for dot idea and whatever vscode adds, if anything

[–] [email protected] 8 points 2 days ago (2 children)

Use this so that the things you need to share do get shared.

.idea/*
!.idea/codeStyles
!.idea/runConfigurations

.vscode/*
!.vscode/settings.json
!.vscode/tasks.json
!.vscode/launch.json
!.vscode/extensions.json
!.vscode/*.code-snippets

Note: I haven't checked the vs code ones in depth, the list might not be perfect.

[–] [email protected] 14 points 2 days ago* (last edited 2 days ago) (4 children)

I personally strongly advise against committing IDE junk to version control. Assuming your IDE workspace defaults are "sane" for the rest of the contributors is not a good practice.

[–] [email protected] 2 points 2 days ago (4 children)

If your whole team uses the same IDE, what's wrong with commiting things like run configurations and code styles? I agree in general, but a wholesale ban on it is very cargo culty to me. There can be legitimate times to do it.

load more comments (4 replies)
load more comments (3 replies)
[–] [email protected] 2 points 2 days ago* (last edited 2 days ago) (5 children)

.vscode doesn't store cache or any trash like that, so if you're including all settings, tasks, etc, you can probably just include everything.

The only thing to keep in mind is to only add settings, extension recommendations, etc that apply to all your collaborators and aren't just personal preferences. A few good examples are formatting rules, task definitions to run the project, and linting rules that can't be defined somewhere else.

load more comments (5 replies)
[–] [email protected] 32 points 2 days ago (1 children)

Ya, but that .idea is not inserted in eleven thousand sub folders.

[–] [email protected] 15 points 2 days ago

It's not, but I still prefer not pushing my config on others, or others pushing theirs on me.

load more comments (3 replies)
[–] [email protected] 208 points 2 days ago (2 children)

honestly - while a Mac is certainly less painful to use than winshit, putting rubbish files recursively into each(!!) accessed folder, on all thumbdrives ever inserted, that's something Jobs deserves to burn in hell for.

[–] [email protected] 20 points 2 days ago (4 children)

I am not familiar with MacOS, but that seems like a nightmare. What is the purpose of these files?

[–] [email protected] 18 points 2 days ago (1 children)

Iirc they're indexes for the system wide search feature, Spotlight

[–] [email protected] 23 points 2 days ago (2 children)

Is there a valid reason not to store that [[anywhere else]], ideally in Spotlight's data?

load more comments (2 replies)
load more comments (3 replies)
[–] [email protected] 50 points 2 days ago* (last edited 2 days ago) (4 children)

You'd want that, but a lot of programs do that, both in Windows and Linux.

e.g. The .directory files with the [Desktop Entry] spec by freedesktop.org
Dolphin has the option to enable/disable the feature

load more comments (4 replies)
[–] [email protected] 45 points 2 days ago (3 children)

defaults write com.apple.desktopservices DSDontWriteNetworkStores -bool TRUE

Helps a bit.

load more comments (3 replies)
[–] [email protected] 20 points 2 days ago* (last edited 2 days ago) (3 children)

As much as they love to sue people, I don't understand why Nintendo doesn't go after Apple for trademark infringement, so that they're forced to finally come up with a better method of storing folder attributes.

[–] [email protected] 11 points 2 days ago (2 children)

I'm pretty sure Apple has been using those files since before Nintendo released the DS.

[–] [email protected] 6 points 2 days ago

This is probably not a relevant counter point, just a(n un)fun fact, but Nintendo put in a patent for throwing a capture ball at monsters after Pal World was released and Pal World has to change some stuff (though I'm not sure if they're doing it to avoid going to court because they're concerned or if they're being compelled).

[–] [email protected] 12 points 2 days ago (1 children)

And emulation is legal too, but that doesn't stop Nintendo.

[–] [email protected] 3 points 2 days ago

Not sure they'd be stupid enough to go after someone as big as Apple though.

load more comments (2 replies)
[–] [email protected] 15 points 2 days ago (2 children)

Linux user has been here.

How can you tell?

*sniff* Still smells like smug.

[–] [email protected] 27 points 2 days ago

*sniff* Still smells like smug.

.Trash-1000

[–] [email protected] 21 points 2 days ago* (last edited 2 days ago) (3 children)
[–] [email protected] 11 points 2 days ago (1 children)

Also applies to Mac but yeah

[–] [email protected] 7 points 2 days ago (2 children)

Didn't Mac use just CR line endings at some point?

[–] [email protected] 6 points 2 days ago

Classic Mac OS did, pre OS X aka pre 2001.

[–] [email protected] 12 points 2 days ago

Long long ago, but yeah

load more comments (2 replies)
[–] [email protected] 62 points 2 days ago* (last edited 2 days ago) (6 children)

I would also like a word with “bonjour” process while we’re at it.

Thought it was a virus when I first discovered it.

[–] [email protected] 28 points 2 days ago
[–] [email protected] 15 points 2 days ago (2 children)

Idk what all it does and doesn't do, but installing it in Windows lets you find your Raspberry Pi by its ".local" hostname. I know it was originally for printers or something.

[–] [email protected] 14 points 2 days ago

It's for local service discovery. Those services may be printers on your network, or another computer sharing music on iTunes (which is why as a Windows user you'd usually get Bonjour when installing iTunes). Or maybe it's your Raspberry Pi.

It feels iffy because it comes bundled with other software without you being asked (IIRC) and it autoruns on startup. And I mean 20 years ago when iPods were a thing and people had to use iTunes on Windows, a couple dozen megabytes of RAM really mattered too. Hell I had 512 MB back when I had an iPod (and therefore iTunes)

[–] [email protected] 6 points 2 days ago

All i figured out for certain is that it came bundled with itunes.

[–] [email protected] 4 points 2 days ago

That was what caused duplicates on setting the printer as default on dad's PC. Just disable active scanning for new printers in the config. Was quite some detective work with examining the service file and recursively grepping /etc for variable names multiple times.

[–] [email protected] 16 points 2 days ago (1 children)

Would you have felt differently if it was called Rendezvous?

[–] [email protected] 18 points 2 days ago* (last edited 2 days ago)

Probably not. I know better then to trust the french /s

[–] [email protected] 38 points 2 days ago (1 children)

"Bonjour, i'm here to fuck shit up"

[–] [email protected] 11 points 2 days ago (1 children)
[–] [email protected] 7 points 2 days ago (2 children)

TIL there's a plural of adieu

load more comments (2 replies)
load more comments (1 replies)
load more comments
view more: ‹ prev next ›