this post was submitted on 02 Oct 2023
1418 points (96.8% liked)

Programmer Humor

19817 readers
62 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
[–] [email protected] 125 points 1 year ago (3 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.

[–] [email protected] 91 points 1 year ago (1 children)

Yes, but this is the default on many distros, so for once the end user is not to blame

[–] [email protected] 46 points 1 year ago (4 children)

Even worse, many components will ignore the XDG_DOWNLOAD_DIR var so even if you manually change it to $HOME/downloads (lower-case) it will often break things.

[–] [email protected] 36 points 1 year ago (1 children)

Keep filling those bugs and stop complaining on random forums, kids

[–] [email protected] 6 points 1 year ago

Porque no los dos?

[–] [email protected] 28 points 1 year ago (1 children)

Something something symlink Downloads to downloads

[–] [email protected] 4 points 1 year ago

Yeah but the main issue is that I don’t want there to be a Downloads directory in my home.

[–] zlatko 3 points 1 year ago (1 children)

Why not just cd $XDG_DOWNLOAD_DIR in the first place?

[–] [email protected] 3 points 1 year ago* (last edited 1 year ago)

That's not an environment variable. It's defined in ${XDG_CONFIG_HOME:-$HOME/.config}/user-dirs.dirs.

Though you can use the xdg-user-dir DOWNLOAD command to get it automatically.

[–] [email protected] 8 points 1 year ago (1 children)

Lower case directories?

Eww

ILikeMineInAWayICanReadThemProperly, instead of ilikemineinawayicanreadthemproperly

[–] [email protected] 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 2 points 1 year ago

CamelCase directories and snake_case files.

[–] [email protected] 3 points 1 year ago

Do. none of you use case insensitive autocomplete? “do ” “Downloads”