this post was submitted on 04 Jun 2025
549 points (99.6% liked)
Programmer Humor
23795 readers
2603 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
- Keep content in english
- No advertisements
- Posts must be related to programming or programmer topics
founded 2 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
Talking to my structural engineer friend about the way we build software makes him sad every time. And I'm not even talking about vibe coding. Yet.
http://www.stilldrinking.org/programming-sucks
"schizophrenic little children with auto-immune diseases and we don’t beat them when they’re bad." Hahahahah
This is literally the difference between me and my wife ;)
You absolutely can regex (some) html if you sanitize and maybe convert it beforehand.
Btw, why are parsers always built to support the whole thing and maybe throw an error on or just consume unsupported shenanigans? That's how you get security vulnerabilities in picture formats. Instead of just picking the things you support and ignoring the rest.
You always have to balance: Do you want the user to have "some" user experience, or none at all.
In the case of image viewers or browsers or stuff, it's most often better to show the user something, even if it isn't perfect, than to show nothing at all. Especially if it's an user who can't do anything to fix the broken thing at all.
That said, if the user is a developer who is currently developing the solution, then the parser should be as strict as possible, because the developer can fix stuff before it goes into production.