- cross-posted to:
- programmerhumor@lemmy.ml
- cross-posted to:
- programmerhumor@lemmy.ml
This meme is way more clever than it should be
Took me a minute
Can you please explain? I’ve never used Mac and it’s been a long time since I’ve properly used windows.
File paths in Linux and Mac use / while Windows uses \
Take a look at the angle of the lightsabers.
I never would’ve gotten that!
Like I said, way more clever than it should be. Props to the creator for sure.
Technically, Windows understands both / and \. I personally always use / just because it’s easier to type that.
The lightsaber orientation is the same as the slash orientation
Ha, neat!
The big reveal comes when you realise the paths are in fact, relative.
I don’t get it
The lightsaber direction is like / \
A whole fight in characters:
/ \
X
| |
\ /- /
X
- /
I hate that I need to use escape characters when creating something for windows.
Python raw strings to the rescue!
Nobody is stopping you from using forward slashes. Python will translate the path for the current platform.
Python doesn’t have to. Windows supports both out of the box. Has been for many, many years
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
Duel of the fates:
\//\
\o/
Both works fine in Windows tho?
Used to not
Times change. You used to not be able to run Linux in Windows, but you can do that too.
Yeah, and I’ve tried that. It turns out it works even better if you throw away the Windows part.
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.
As is right and proper.
But why? What is the point?
That you can give 2 different files the same name? Because that would confuse the hell out of every regular user. Especially if you work on a network share and have an entire directory full of same named files because everyone and their grandma throws their files in there.
It is almost as bad as Case Sensitive Usernames and email.