this post was submitted on 01 Aug 2025
856 points (96.5% liked)

Programmer Humor

25484 readers
1774 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
 
(page 3) 50 comments
sorted by: hot top controversial new old
[–] panda_abyss@lemmy.ca 5 points 4 days ago (1 children)

I wrote and ipv6 parser once.

Never again.

[–] Xylight@lemdro.id 5 points 4 days ago (1 children)

As in a regex or ..?

An ipv4 parser would also be sorta difficult.

you have to account for the fact that all the octets can be added to decimal: http://2130706433 (valid 127.0.0.1)

or the fact that octets can be in different formats: http://0x7F.0x0.0x0.0x1 (127.0.0.1)

or the fact that you can mix octet formats: http://0xC0.0250.0.1 (192.168.0.1)

load more comments (1 replies)
[–] Kurious84@lemmings.world 4 points 4 days ago (1 children)

An ipv6 address turns my brains thinking center off. Short circuit at how fucking stupid it looks.

load more comments (1 replies)
load more comments
view more: ‹ prev next ›