Hacker News new | ask | show | jobs
by robotresearcher 3077 days ago
Where 65 means ‘A’? Madness.
2 comments

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.