this post was submitted on 02 Oct 2023
1408 points (96.7% liked)

Programmer Humor

19315 readers
1 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 1 year ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] aleq@lemmy.world 123 points 1 year ago (14 children)

Reasonable and sane behavior of cd. Just get into the habit of always using lower case names for files and directories, that's how our forefathers did it.

[–] Honytawk@lemmy.zip 6 points 1 year ago (2 children)

Lower case directories?

Eww

ILikeMineInAWayICanReadThemProperly, instead of ilikemineinawayicanreadthemproperly

[–] aleq@lemmy.world 14 points 1 year ago (1 children)

If a directory has multiple words in it I usually do kebab case: i-like-mine-in-a-way-i-can-read-them-properly. Both easier to read and type than pascal case.

For more complex filenames I use a combination of kebab-case and snake_case, where the underscore separates portions of the file name and kebab-case the parts of those portions. E.g. movie-title_release-date-or-year_technical-specifications.mp4

[–] jasory@programming.dev 2 points 1 year ago

CamelCase directories and snake_case files.

load more comments (11 replies)