this post was submitted on 22 Sep 2025
966 points (98.9% liked)

Programmer Humor

26551 readers
1715 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
you are viewing a single comment's thread
view the rest of the comments
[–] livingcoder@programming.dev 23 points 3 days ago (3 children)

Now I use lowercase and underscores everywhere.

[–] drmoose@lemmy.world 10 points 3 days ago (2 children)

Hyphens > underscores for filenames because all web standards prefer hyphens so if you ever want to network your files its a much smoother experience!

[–] livingcoder@programming.dev 5 points 3 days ago

This is what I need, an explicit reason that makes one choice better than another. If hyphens make for a smoother experience, then I'll reconsider my default behavior.

Thanks for pointing out this benefit.

[–] SaharaMaleikuhm@feddit.org 3 points 2 days ago (1 children)

They suck hard. I use the renpy engine and there you reference file names directly but always lower case and spaces and hyphens turn to underscores. That can cause issues, so I just do underscores in my file names. Don't give damn about the web.

[–] drmoose@lemmy.world 1 points 2 days ago

Yeah I prefer underscores too but kebab case is definitely better for web and general ergonomics. Dash doesnt require a shift hold! Tho I still mix these depeding on tool or existing idioms. One thing for sure is that spaces and capital letters are stupid and we should do less of them.

[–] Anahkiasen@lemmy.blahaj.zone 5 points 3 days ago

This is the best for tab completion, altho I prefer hyphens visually

[–] BassTurd@lemmy.world 3 points 3 days ago

I prefer lowercase with hyphens, but I'm transitioning into a team that does everything camelCase, which is the second best case, but I still strongly dislike it.