this post was submitted on 13 Jul 2023
460 points (98.3% liked)

Programmer Humor

32410 readers
1 users here now

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

Rules:

founded 5 years ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] lowleveldata@programming.dev 12 points 2 years ago (12 children)

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

[–] zeropublix@lemmy.ml 12 points 2 years ago (2 children)

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

[–] Sallen@lemmy.world 23 points 2 years ago (1 children)

Embedded software devs still exist btw

[–] angrymouse@lemmy.world 2 points 2 years ago (2 children)

Stop lying, who in the modern world would need embedded systems?

[–] kakes@sh.itjust.works 5 points 2 years ago

I don't see a use for embedded systems that can't be adequately replaced with a Windows PC smh.

[–] socsa@lemmy.ml 1 points 2 years ago

Netcode. I make my own layer 2 headers sometimes.

[–] Doombot1@lemmy.one 8 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 (9 replies)