this post was submitted on 15 Nov 2023
1010 points (95.6% liked)

Programmer Humor

19623 readers
429 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 1 year ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[โ€“] azertyfun@sh.itjust.works 6 points 1 year ago (1 children)

Fuck that, if for whatever reason I'm writing an IP validator by hand I'm disallowing leading zeros. Parsers are very inconsistent, some will parse 010 as 10, others as 0o10 == 8 (you can try that right now with a POSIX ping). Talk about a footgun.

[โ€“] stringere@reddthat.com 6 points 1 year ago

some will parse 010 as 10, others as 0o10 == 8

...and that's me in the fetal position, thanks.