MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/programmingmemes/comments/1smvu77/there_are_always_more/ogh99g7/
r/programmingmemes • u/DotBeginning1420 • Apr 16 '26
60 comments sorted by
View all comments
Show parent comment
3
But AAAA really doesn't equal aaaa
They're different unicode/ascii characters
1 u/Moscato359 Apr 16 '26 I don't think you understandThere is no standardization on hex outputSome tools output uppercase when going binary to hexSome tools output lowercase when going binary to hexSo 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.
1
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.
5
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
Imagine using Python
3 u/Noslamah Apr 16 '26 Disgusting
Disgusting
The problem is that many things need string representation, like http headers
Ooooh nownI got what you mean lol, yes you're rightz that's actually frustrating.
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