this post was submitted on 01 Feb 2025
827 points (99.3% liked)

Programmer Humor

20039 readers
1681 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
 
top 50 comments
sorted by: hot top controversial new old
[–] MooseTheDog 10 points 4 hours ago

File systems aren't even real.

[–] atx_aquarian 37 points 7 hours ago* (last edited 4 hours ago) (6 children)

Fun fact, though: Linux is the only case-sensitive one.

Edit: I feel silly for forgetting that it's all about the choice of FS. If anyone needs anything from me, I'll be in the corner, coloring.

[–] [email protected] 1 points 12 minutes ago

I once ran into a bug in an Arduino program where it wouldn't compile. The author blamed my "broken environment". Turned out, he had included "arduino.h" instead of the correct "Arduino.h".

[–] [email protected] 27 points 3 hours ago (2 children)

From a technical standpoint, the windows NTFS filesystem is designed inherently case sensitive, just windows doesn't allow creating case sensitive files.

Connecting an NTFS drive to linux, you can create two separate files readme.txt and Readme.txt.

Using windows, you can see both files in the filesystem, but chances are most (if not all) software will struggle accessing both files, opening readme.txt might instead open Readme.txt or vice versa.

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

For a few years now, Windows has had the capability of marking certain directories as case-sensitive. So you can have a mixed-case-sensitivity filesystem experience now. Yeah. :/

[–] riodoro1 8 points 2 hours ago

Such a microsoft thing to do.

[–] MooseTheDog 6 points 4 hours ago (3 children)

Least favorite part of linux honestly

[–] [email protected] 11 points 3 hours ago (1 children)

Case-insensitive filesystems are for maniacs. They are only causing trouble. Ever had two folders with the same name but different capitalization in windows? You see both, but whichever you click it will always open the same one, while the other can't be accessed. Psychopath behavior.

[–] [email protected] 1 points 48 minutes ago

That's because NTFS isn't case-insensitive. If it was there'd be no two folders. Windows is a case-insensitive operating system running on a case-sensitive file system. It's pretty clear Microsoft wanted case sensitivity and then realised how much legacy software that'd break.

[–] [email protected] 10 points 4 hours ago (1 children)

Makes changing the case of a file/folder a lot easier though. Windows you have to rename it to something else then rename it again just to change case but Linux you can just...rename it. It's a small thing but it's something

[–] [email protected] 1 points 50 minutes ago

is this bug really impossible to fix just because the file system is case insensitive?

[–] [email protected] 3 points 4 hours ago

You can turn it off, at least for ext4: https://lwn.net/Articles/784041/

[–] [email protected] 12 points 6 hours ago* (last edited 6 hours ago) (1 children)

Although you can use case insensitive filesystems with Linux, and case sensitive filesystems with macOS. I believe the case sensitivity is a function of the specific filesystem


but yeah, practically, the root for Linux is always case sensitive, and APFS ~~ain't~~ is only if you ask it to be ( https://support.apple.com/lv-lv/guide/disk-utility/dsku19ed921c/mac ).

[–] paperplane 9 points 4 hours ago (1 children)

When case insensitivity is the default I always wonder how many apps unknowingly rely on that due to typos somewhere. I encountered this once while porting a Windows/macOS app to Linux that someone imported a module with the wrong case and nobody noticed

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

VS Codium did that at some point, it probably still does but I haven't checked

[–] ikidd 11 points 6 hours ago

As is right and proper.

[–] SmoothLiquidation 5 points 6 hours ago

On MacOS you get a choice when you format the drive.

[–] disguy_ovahea 196 points 11 hours ago (1 children)

This meme is way more clever than it should be

[–] [email protected] 39 points 10 hours ago (2 children)

Didn't realize until I read your comment. Thanks.

[–] [email protected] 31 points 10 hours ago (1 children)

It's not something the Jedi would tell you.

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

Only a sith deals in absolute paths.

load more comments (1 replies)
[–] [email protected] 29 points 10 hours ago (3 children)

I didn't realise until I read that comment, your comment and the other comment about slash direction.

[–] hemmes 11 points 8 hours ago

JFC, thank you. I didn’t realize until it was spelled out for me. I’m definitely not that kind of smart.

This is why I always sucked at games like Myst

[–] Serinus 6 points 7 hours ago

I realized immediately, read the comment, and then went back to look for a deeper meaning. It wasn't there.

load more comments (1 replies)
[–] [email protected] 72 points 11 hours ago (5 children)

I hate that I need to use escape characters when creating something for windows.

load more comments (5 replies)
[–] umbraroze 18 points 8 hours ago (1 children)

I don't really watch Star Wars. I'm a more of a Trekkie gal.

🖖

See, you can separate files both ways as long as it's logical

[–] T156 5 points 7 hours ago

Specifying paths with - would be its own special brand of hell.

[–] pelya 42 points 10 hours ago (2 children)

You can actually use / as a path separator on Windows in functions like fopen(), because it supports some ancient version of POSIX standard.

[–] [email protected] 25 points 10 hours ago

There used to be an undocumented setting in early versions of MS-DOS that would allow the setting of the command option character to something other than the slash, and if you did that, the slash automatically became the path separator. All you needed was SWITCHAR=- in your CONFIG.SYS and DOS was suddenly very Unix-y.

It was taken out after a while because, with the feature being undocumented, too many people didn't know about it and bits of software - especially batch files, would have been reliant on things being "wrong". The modern support for regular slash in API calls probably doesn't use any of the old SWITCHAR code, but it is, in some way, the spiritual descendant of that secret feature.

Here's an old blog that talks about it: https://learn.microsoft.com/en-gb/archive/blogs/larryosterman/why-is-the-dos-path-character

[–] marcos 9 points 9 hours ago

The one thing about NT was that it didn't have it's own semantics, but it could emulate any system you wanted. It's the unofficial successor of an OS that was based on creating VMs where you could run any other OS you want.

Then Microsoft decided to create their own system in it, and only really finished writing that one.

[–] friend_of_satan 30 points 10 hours ago* (last edited 10 hours ago) (3 children)

Also the internet belongs on the left.

And really, Linux/macos could be reduced to "Unix" https://upload.wikimedia.org/wikipedia/commons/7/77/Unix_history-simple.svg

[–] mercano 9 points 7 hours ago (1 children)

Only Mac OS 10 and later, based on BSD, uses ‘/‘. (And, I guess, A/UX.) Classic MacOS used a ‘:’, but it wasn’t regularly exposed in the UI. The only way most users would know is that the colon couldn’t be used in a file name.

[–] [email protected] 2 points 3 hours ago* (last edited 3 hours ago)

I might be wrong, but I think you still can't use a ':' in a filename in macOS. If I recall correctly it will let you do it and show it in Finder, but actually replace it with a '-'.

[–] [email protected] 26 points 10 hours ago (2 children)

And BSD. It's really just Windows vs. literally everything. Or is there anything else that uses backslashes?

[–] shotgun_crab 8 points 8 hours ago

Typical windows behavior

[–] db2 20 points 9 hours ago

CP/M

Which in this context is named hilariously.

load more comments (1 replies)
load more comments
view more: next ›