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

Programmer Humor

20188 readers
1650 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 2) 50 comments
sorted by: hot top controversial new old
[–] kipo@lemm.ee 6 points 1 day ago (2 children)

Blue Harvest for Mac will continually clean your removable drives of these files.

load more comments (2 replies)
[–] FatTony@lemm.ee 24 points 2 days ago (5 children)

I am not exactly a programmer. What is the .DS_Store file for?

[–] Kissaki@programming.dev 6 points 2 days ago* (last edited 2 days ago)

I learned of those files outside the context of programming. When program or file zip packages contained these random ds store files and I looked up what they are.

Turns out, it's metadata ~~caching~~ for macOS. Irrelevant and does not belong into [distributed or shared] packages.

/edit: It's been a long time ago. Looking at it again, I guess it adds folder metadata, so it could be useful when distributing to other macOS. But for other OS, it's noise. Either way, usually it's not intentionally included.

load more comments (4 replies)
[–] boonhet@lemm.ee 29 points 2 days ago (19 children)

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

[–] Valmond@lemmy.world 32 points 2 days ago (1 children)

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

[–] boonhet@lemm.ee 15 points 2 days ago

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

[–] MissingInteger@lemm.ee 13 points 2 days ago

You can add .DS Store in your global gitignore at ~/config/git/ignore

[–] andioop@programming.dev 11 points 2 days ago* (last edited 2 days ago) (1 children)

git add . > git commit -m "initial" > git push

Later when I git status or just look at the repo online… "oh crap I let .DS_Store in didn't I…" and then I remember to set up a .gitignore and make a new commit to take out the .DS_Store and put in the .gitignore.

load more comments (1 replies)
load more comments (16 replies)
[–] Psythik@lemmy.world 19 points 2 days ago* (last edited 2 days ago) (6 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.

load more comments (6 replies)
[–] bitcrafter@programming.dev 15 points 2 days ago (2 children)

Linux user has been here.

How can you tell?

*sniff* Still smells like smug.

[–] MonkderVierte@lemmy.ml 27 points 2 days ago

*sniff* Still smells like smug.

.Trash-1000

[–] bleistift2@sopuli.xyz 21 points 2 days ago* (last edited 2 days ago) (5 children)
[–] Ephera@lemmy.ml 9 points 2 days ago (1 children)

It's only really Windows that doesn't use LF these days. All the Unix-based ones (Linux, BSD, macOS, iOS, Android etc.) use LF...

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