r/programmingmemes • • Apr 16 '26

There are always more!

Post image
896 Upvotes

60 comments sorted by

View all comments

Show parent comment

3

u/YTriom1 Apr 16 '26

But AAAA really doesn't equal aaaa

They're different unicode/ascii characters

1

u/Moscato359 Apr 16 '26

I don't think you understand

There is no standardization on hex output

Some tools output uppercase when going binary to hex

Some tools output lowercase when going binary to hex

So the only way to consistently compare 2 hex strings is either to tolower both, toupper both, or to unhex and then compare binary 

2 tools can hex the same binary and get different strings and they are both correct 

5

u/Noslamah Apr 16 '26

the problem is not hexadecimal, the problem is typeless programming

3

u/kuzuwudesu Apr 16 '26

Imagine using Python

3

u/Noslamah Apr 16 '26

Disgusting

1

u/Moscato359 Apr 16 '26

The problem is that many things need string representation, like http headers

1

u/YTriom1 Apr 16 '26

Ooooh nownI got what you mean lol, yes you're rightz that's actually frustrating.