467
blahaj (lemmy.zip)
submitted 1 month ago by [email protected] to c/[email protected]
top 50 comments
sorted by: hot top controversial new old
[-] [email protected] 55 points 1 month ago

We have Unicode these days: blåhaj

[-] [email protected] 35 points 1 month ago

Unicode in filenames? Are you crazy?!

Okay that was /s to some extent but I gotta rant, I'm totally convinced that there's still new software today that completely trip over themselves when files or paths have non-ASCII characters, or sometimes even a space. Incompetence didn't go anywhere.

[-] [email protected] 25 points 1 month ago

I still use underscores for filenames, basically muscle memory at this point

[-] [email protected] 8 points 1 month ago

Spaces in file names will always be fiddly though. It'll work, but it'll still be wrong, because arguments are space separated, and having spaced file names totally messes with that.

[-] [email protected] 4 points 1 month ago* (last edited 1 month ago)

I try to just always put files names or paths into quotes in CLI or tie it to a variable in programming. This way it also accepts spaces and knows how to separate it from arguments.

[-] [email protected] 4 points 1 month ago

Yeah. It's a good idea to guard against it, but I would still never put spaces in filesnames that I myself choose.

[-] [email protected] 12 points 1 month ago

Unicode in filenames can be a bad idea, since there are more than one way to achieve what looks like the same character. So matching patterns could fail if you think it's one way, but it's actually another representation in unicode.

[-] [email protected] 4 points 1 month ago

Good point. Do filesystems use a normal form to at least prevent having two files with effectively the same name?

I should point out the flip side though, that there's no avoiding Unicode in filenames. Users in languages that don't use the Latin alphabet (such as Japanese, Chinese, Korean, Hebrew, Arabic, Greek and Russian, and the list could go on) can reasonably expect to be able to give a file a name they can read and understand with no extra effort. All the software woes that come with it - too bad, software needs to deal with it.

[-] [email protected] 1 points 1 month ago

I'm not sure. A few years ago I remember that OpenBSD expected ASCII for files, but I think Linux expects utf-8. I could be wrong though.

[-] [email protected] 3 points 1 month ago* (last edited 1 month ago)

I'm assuming Unicode anyway, and UTF-8 is by far the most natural because most files will be in ASCII. A "normal form" (see link above), you might think of it as a canonical form, is a way to check if two strings are equivalent, even if they encoded the text differently. Like the example mentioned on Wikipedia:

For example, the distinct Unicode strings "U+212B" (the angstrom sign "Å") and "U+00C5" (the Swedish letter "Å") are both expanded by NFD (or NFKD) into the sequence "U+0041 U+030A" (Latin letter "A" and combining ring above "°") which is then reduced by NFC (or NFKC) to "U+00C5" (the Swedish letter "Å").

[-] [email protected] 8 points 1 month ago

Incompetence didn't go anywhere.

Now that's certainly true, but the beauty of open source software is that we can fix bugs when we encounter them.

[-] [email protected] 16 points 1 month ago

I'm too lazy to memorize alt codes

[-] [email protected] 11 points 1 month ago

Use a compose key

[-] [email protected] 41 points 1 month ago
[-] [email protected] 31 points 1 month ago

Why are we sttill kink shaming?

[-] [email protected] 26 points 1 month ago

Blahaj cannot speak, therefore Blahaj cannot give consent.

[-] [email protected] 6 points 1 month ago
[-] [email protected] 1 points 1 month ago* (last edited 1 month ago)

What? That shouldn't be any basis for consent! Only if someone is able to consent, i.e. emphatically say 'yes' (or otherwise agree), should you start thinking about doing anything sexual involving them. If you do anything sexual involving someone who cannot say 'no' then that is a sexual violation of them.

[-] [email protected] 3 points 1 month ago

This was a satire

[-] [email protected] 3 points 1 month ago

You don't necessarily need speech for consent since non-verbal/mute people exist.

[-] [email protected] 26 points 1 month ago
[-] [email protected] 13 points 1 month ago
[-] [email protected] 12 points 1 month ago
[-] [email protected] 1 points 1 month ago

I feel like unicode in the filename is heavily against the spirit of using squashfs, or at least the ways I've seen it used.

[-] [email protected] 5 points 1 month ago

mv blahaj.elf.tar.gz.part ./rivendell

[-] [email protected] 4 points 1 month ago

Ok, what kind of monster names their executables .elf?

[-] [email protected] 8 points 1 month ago

Well, a.out doesn't make much sense these days.

Gotta move to .elf

[-] [email protected] 2 points 1 month ago

Pi Pico SDK does. Well, the version for debugging symbols, anyway. Regular executable is .uf2.

[-] [email protected] 2 points 1 month ago

I reserve .elf for executables for other platforms, like microcontroller firmware.

load more comments (20 replies)
[-] [email protected] 14 points 1 month ago

blahaj.zone Blahaj Lemmy Logo

[-] [email protected] 10 points 1 month ago
[-] [email protected] 5 points 1 month ago

You don't need to tape archive it, it's one thing

[-] [email protected] 3 points 1 month ago

Yeah but you can

[-] [email protected] 5 points 1 month ago

I feel so compressed.

load more comments
view more: next ›
this post was submitted on 16 Jul 2024
467 points (97.2% liked)

Programmer Humor

31968 readers
1552 users here now

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

founded 5 years ago
MODERATORS