this post was submitted on 21 Nov 2023
254 points (93.5% liked)

Programmer Humor

32503 readers
385 users here now

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

Rules:

founded 5 years ago
MODERATORS
 
all 37 comments
sorted by: hot top controversial new old
[–] TCB13@lemmy.world 105 points 1 year ago* (last edited 1 year ago) (5 children)
[–] plistig@feddit.de 113 points 1 year ago (1 children)
[–] FishFace@lemmy.world 34 points 1 year ago (3 children)

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

[–] fibojoly@sh.itjust.works 34 points 1 year ago (1 children)

If only you knew how many huge companies have no fucking clue...

[–] FishFace@lemmy.world 22 points 1 year ago (1 children)

Their employees have failed Unicode college >:(

[–] fibojoly@sh.itjust.works 8 points 1 year ago

I agree! There really should be no excuses at this point... you'd think. Even in 2008 I already felt we were behind the loop, but apparently I was vastly underestimating how bigger companies just dgaf.

[–] plistig@feddit.de 11 points 1 year ago (1 children)

¯\_(ã )_/¯

print('¯\_(ツ)_/¯'.encode('u8').decode('l1'))
[–] FishFace@lemmy.world 7 points 1 year 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...

[–] xmunk@sh.itjust.works 15 points 1 year ago

Sorry, no, but I can support it in UTF-16.

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

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

[–] TCB13@lemmy.world 4 points 1 year ago

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

[–] Bear_with_a_hammer@lemmy.ml 5 points 1 year ago

UTF-8 Random anyone?

[–] lesnout27@feddit.de 52 points 1 year ago (1 children)
[–] CareHare@sh.itjust.works 28 points 1 year ago (1 children)

Yeah I think I'm OOTL, can someone explain?

[–] ElBarto@sh.itjust.works 17 points 1 year ago

I think the simulation is broken again.

[–] SocialMediaRefugee@lemmy.ml 33 points 1 year ago (2 children)

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

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

0-127, top bit is always 0.

[–] juliebean@lemm.ee 6 points 1 year 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 1 year ago* (last edited 1 year 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 1 year ago

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

[–] Agent641@lemmy.world 4 points 1 year ago

Just like pokemon

[–] ShortFuse@lemmy.world 16 points 1 year ago* (last edited 1 year ago) (2 children)

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

I guess Beyonce has no love for Extended ASCII.

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

Compose e

[–] writeblankspace@lemm.ee 2 points 1 year ago

or AltGr + ' + e I love this shortcut

[–] EssentialCoffee@midwest.social 11 points 1 year ago

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

[–] shiveyarbles@beehaw.org 6 points 1 year 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.

[–] Scrollone@feddit.it 3 points 1 year ago (1 children)
[–] BilboBargains@lemmy.world 2 points 1 year ago

I want to join the C-hive

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

right wing?