1456
submitted 4 months ago by [email protected] to c/[email protected]
you are viewing a single comment's thread
view the rest of the comments
[-] [email protected] 13 points 4 months ago
[-] [email protected] 72 points 4 months ago

Linux uses forward slash. Windows uses backslash. Because some dude 45 years ago wanted to make it look different from UNIX.

[-] [email protected] 17 points 4 months ago

I understand pre-OS X Macintoshes used colons.

[-] [email protected] 21 points 4 months ago

They did! And I weirdly kind of miss them for the entirely non-logical reason that they looked elegant.

Don't get me wrong, I adapted in about 3 seconds when I made the switch to Mac OS X 25 years ago, but I irrationally kinda miss them just a tiny bit.

[-] [email protected] 9 points 4 months ago

Code in Rust and you can get double colons for your library path imports!

[-] [email protected] 3 points 4 months ago* (last edited 4 months ago)

RISC OS uses periods and doesn't have file extensions

[-] [email protected] 7 points 4 months ago

Was that bill gates just to make one of the first incompatibilities in a long long run?

[-] [email protected] 22 points 4 months ago* (last edited 4 months ago)

DOS originally didn't even support directories but was using / for command line arguments. They didn't want to change the option character and break stuff so they went with \ as the directory separator.

DOS wasn't originally created by Microsoft. They bought the OS from computer shop in Seattle.

[-] [email protected] 3 points 4 months ago

Thanks for the info, didn't know that (I did know they bought DOS)!

[-] [email protected] 5 points 4 months ago

This is a great video about the launch of Windows 95, that covers the history of DOS at the beginning: https://youtu.be/0Ol8ZSE-PEk. Worth watching if you're interested in the history.

[-] [email protected] 2 points 4 months ago
[-] [email protected] 8 points 4 months ago

The lightsaber direction is like / \

[-] [email protected] 2 points 4 months ago* (last edited 4 months ago)

A whole fight in characters:
/ \
X
| |
\ /

  • /
    X
this post was submitted on 01 Feb 2025
1456 points (99.1% liked)

Programmer Humor

23955 readers
1167 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