this post was submitted on 29 Sep 2026
624 points (97.9% liked)

Programmer Humor

33385 readers
1111 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 3 years ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[โ€“] ZILtoid1991@lemmy.world 3 points 13 hours ago (1 children)

When I wrote my numerical parser, people told me to use regexes to detect what kind of numerical value is being parsed. I just did it in one go. Only regex-like checking is for ISO datetime values.

[โ€“] grillgamesh@lemmy.dbzer0.com 1 points 11 hours ago

regex is computationally pretty cheap, from what I've read; due to something about it being a simple AND gate or something..... . IDR, and to be honest it doesn't really matter in the era of 16-core/32thread 5GHz processors.... but when you just want it to work..... it does "just work". /shrug.