this post was submitted on 21 Nov 2023
238 points (93.1% liked)

Programmer Humor

32410 readers
1 users here now

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

Rules:

founded 6 years ago
MODERATORS
 
all 36 comments
sorted by: hot top controversial new old
[–] TCB13@lemmy.world 98 points 2 years ago* (last edited 2 years ago) (4 children)
[–] plistig@feddit.de 104 points 2 years ago (1 children)
[–] FishFace@lemmy.world 31 points 2 years ago (2 children)

So... UTF-8 interpreted as ISO-8859-1? You have failed Unicode college >:(

[–] plistig@feddit.de 10 points 2 years ago (1 children)

¯\_(ã )_/¯

print('¯\_(ツ)_/¯'.encode('u8').decode('l1'))
[–] FishFace@lemmy.world 6 points 2 years ago

And here I was typing out iso-8859-1 like a scrub to make sure I wasn't misremembering the encoding when doing the analogous thing in python...

[–] clearleaf@lemmy.world 11 points 2 years ago (1 children)

Maybe she was sick of trying to get a terminal displaying utf correctly.

[–] TCB13@lemmy.world 4 points 2 years ago

So... she's running DD-WRT :P

[–] Bear_with_a_hammer@lemmy.ml 5 points 2 years ago

UTF-8 Random anyone?

[–] lesnout27@feddit.de 49 points 2 years ago

What did i just read

[–] Binthinkin@kbin.social 41 points 2 years ago (1 children)

Wait Beyonce is a blonde white woman now? Is this what they mean when they say “it’s a different kind of white?”

[–] macaroni1556@lemmy.ca 1 points 2 years ago

It's just skin tone, with the right lighting and color grading we all just look like people

[–] SocialMediaRefugee@lemmy.ml 30 points 2 years ago (2 children)

0-255 was good enough for me an my grandpappy.

[–] gens@programming.dev 26 points 2 years ago (2 children)

0-127, top bit is always 0.

[–] juliebean@lemm.ee 6 points 2 years ago (1 children)

i thought the top bit was originally 0 or 1 depending on the evilness/odiousness of the rest of the number, as a parity check.

[–] CanadaPlus@futurology.today 9 points 2 years ago* (last edited 2 years ago)

The standard itself is 7-bit, since wires were deemed more valuable than endpoint logic for the teletype machines way back then. If you're running it on an 8-bit byte machine you could do it either way, although I'm not sure what the point in parity checking individual characters is. Modern software uses 0.

[–] ikidd@lemmy.world 4 points 2 years ago

Damn big-endians always looking down on the rest of us.

[–] Agent641@lemmy.world 4 points 2 years ago

Just like pokemon

[–] willya@lemmyf.uk 16 points 2 years ago

She must be running out of ideas.

[–] ShortFuse@lemmy.world 15 points 2 years ago* (last edited 2 years ago) (2 children)

Good ol' Alt+1``3``0.

I guess Beyonce has no love for Extended ASCII.

[–] itslilith@lemmy.blahaj.zone 2 points 2 years ago

Compose e

[–] writeblankspace@lemm.ee 2 points 2 years ago

or AltGr + ' + e I love this shortcut

[–] EssentialCoffee@midwest.social 10 points 2 years ago (1 children)

You've been able to do diacritical marks with ASCII for over thirty years. It's already standard. alt+0233

[–] Rom@hexbear.net 3 points 2 years ago* (last edited 2 years ago)

dunno if it's the same character but alt+130 has been firmly drilled into my brain from my entire Pokémon childhood.

[–] shiveyarbles@beehaw.org 6 points 2 years ago

Yeah let's drop wide characters, it was a bad idea. Let's simplify.. also let's convert all porn back to ASCII art.

[–] Saeculum@hexbear.net 4 points 2 years ago
[–] Scrollone@feddit.it 3 points 2 years ago (1 children)
[–] BilboBargains@lemmy.world 2 points 2 years ago

I want to join the C-hive

[–] MonkderZweite@feddit.ch 0 points 2 years ago* (last edited 2 years ago) (1 children)
[–] jackpot@lemmy.ml 4 points 2 years ago

right wing?