[Poll] Do you write hexadecimal numbers in upper- or lowercase?

5    14 Aug 2016 22:45 by u/cassis

0xb000b1e5 vs 0xB000B1E5 ?

What's your preferred style? Why?

55 comments

24

Upper case, by habit. Also, uppercase letters are closer to the digits in the ASCII table (they're separated by seven symbols) so I feel that they belong together.

6

dat feelz...

5

Always uppercase.

9

A55FACE.

B00B1E5

Any questions?

4

You only listed 7 digits. Hex would be 8. Explain yourself. And put on some pants first.

1

Significant digits. You don't say 0123, you just say 123. And now it's just my boxers and socks.

7

Lowercase. It distinguishes the letters from the numbers more easily.

1

But, they're all numbers?

5

I use lower, makes it more human readable.

3

I would say the opposite is true. This makes up for the non-monospace fonts.

5

Type, lower. Hand write, upper.

2

Hah, same.

5

I use binary....
0b1011000000001011000111100101
because I actually want to see what is being transmitted, and test it against the oscilloscope.

4

I was certain you were joking until you mentioned the O-scope.

Embedded systems are a hell of a thing.

3

It really is frustrating when I can't even get the RS232 transmission correct... I want to give up.

4

Lower, because it involves less key presses, and makes the letters stand out more.

Edit:

Just curious about the reasoning behind the downvote? Obviously someone has a differing opinion. I'd like to know what it is. Don't just downvote and run; that's fucking lame.

3

BECAUSE YOU SHOULD ALWAYS WHIP OUT THE CAPS. That's what the Billy Mays key is for!

4

I originally preferred upper case, cause capital letters look more like numbers, so the number looked more consistent.

But then I found that everyone used lower case (in C++ code), so I gave up and switched to lower case.

2

I switched to lowercase for the same reason, that capital letters look more like numbers, e.g. B8BA4A4B8B8 versus b8ba4a4b8b8.

3

I use upper in Windows and lower in *NIX, usually.

3

Upper

3

Upper, also, nice boobies.

2

Uppercase.

In typing it makes them stand out more and makes it obvious to me that the string in question is a hex string and not alphabetic.

In handwriting, I write everything in uppercase.

2

Depends how burnt out I am. If I'm really tired of programming for the day I'll go to lower but usually I do upper

2

Uppercase. What the fuck kind of question is this?

2

Upper. lowercase looks wrong

2

Generally I don't have to do this very much, and if I do it tends to be in contexts where someone else has already written a number in hex, so I just use the same case that's already been used. If I have to do it on my own I generally use upper case, because that's what I was taught at school.

1

Lowercase, most cryptography encryption keys are already long. (256 bits), making it capital would make it longer. I like shorter keys.

0xb000b1e5

2

Longer? How?

1

Use your measuring stick, it will be LONGER.

1

Ah. Well, in that case that would depend on what font you use.

If you use a monospace font, the length will be exactly the same. Who uses times fonts in cryptography anyway.

1

01ab.23cd.ef45

1

I don't have a case preference, but for 32b numbers please put in some separators ffs: 16#abcd_1234#

1

Upper for documentation, input, I don't give a fuk

1

UPERCASE. Not sure why, it just feels good.