431
To type or not to type ? (sh.itjust.works)
you are viewing a single comment's thread
view the rest of the comments
[-] lowleveldata@programming.dev 11 points 2 years ago

tbh unsigned int scares me too. I just use int anyway to avoid strange things happening.

[-] zeropublix@lemmy.ml 10 points 2 years ago

The use of it quite limited in the every-day coders life. People acting like they be using 500TB databases these days.

[-] Doombot1@lemmy.one 7 points 2 years ago

I use uints every day at work. They’re very useful for cases when you’ve only got a single byte or two bytes to work with. E.g. an 8-bit int will only get you to a max of 127, but of course an unsigned 8-bit gets you to 255. Similar concept with 16/32/64s. Very useful when you’re working with small amounts of available memory, such as when writing code to go on ASICs.

load more comments (4 replies)
load more comments (10 replies)
this post was submitted on 13 Jul 2023
431 points (98.2% liked)

Programmer Humor

32707 readers
1100 users here now

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

founded 5 years ago
MODERATORS