this post was submitted on 29 Nov 2026
805 points (98.7% liked)

Programmer Humor

34366 readers
540 users here now

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

founded 3 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
[–] expletivedeleted@lemmy.zip 2 points 1 day ago (1 children)

Dude sits next to me at work. He vibe codes. I could completely see him saying this.

He is the same guy who struggled all day trying to figure out how to get a subnet mask between /22 and /23. I finally intervened because I overheard he was having a networking issue.

"Dude, how the fuck do you get half a bit? Trying to use decimal points in binary?" The look on his face was goddamn priceless.

[–] Zak@lemmy.world 4 points 1 day ago (1 children)

There are 10 types of people in the world: those who understand binary, and those who don't.

It is possible to represent binary fractions with a point. Support in programming languages is uncommon, but it exists:

Welcome to Racket v9.3 [cs].
> #b0.01
0.25

The size of a subnet is, of course always an integer regardless of what kind of numbers your tools can understand.

[–] expletivedeleted@lemmy.zip 1 points 14 hours ago

Yeah... now try that with CIDR.