1012
GoOn (programming.dev)
you are viewing a single comment's thread
view the rest of the comments
[-] azertyfun@sh.itjust.works 6 points 1 year 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 1 year 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
1012 points (95.7% liked)

Programmer Humor

19821 readers
956 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 2 years ago
MODERATORS