Hacker News new | ask | show | jobs
by coldtea 3077 days ago
>But you’re channeling some crazy madness suggesting that someone would use ‘A’ to mean 65.

Or just an encoding scheme.

1 comments

Where 65 means ‘A’? Madness.
You could have a binary file format with a header of ABBA. You could choose to check the signature by doing an integer comparison of 65666665, 0x41424241 or "ABBA". Like I said, ASCII_A is a bit silly, but the maintenance value of extracting constant literals to constant variables with an explicit name & documentation explaining where the constant comes from is pretty solid, at least in my experience.
A is 65 in ASCII. http://www.asciitable.com
I know. It was a joke.