1006
GoOn (programming.dev)
you are viewing a single comment's thread
view the rest of the comments
[-] azertyfun@sh.itjust.works 6 points 10 months ago

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 10 months ago

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

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

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

Programmer Humor

19208 readers
1396 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