this post was submitted on 31 Jul 2024
731 points (99.3% liked)

Programmer Humor

19594 readers
545 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
 
you are viewing a single comment's thread
view the rest of the comments
[–] ChaoticNeutralCzech@feddit.org 133 points 3 months ago* (last edited 3 months ago) (23 children)

If you think is-number can be replaced with a one-liner, you don't have the enterprise code mindset. What if the world gets more inclusive and MMXXIV, ½ and ⠼⠁ become recognized as numbers? 𒐍𓆾 were numbers in the past but what if people start assigning numeric value to other characters? Are 🖐🔟💯🆢🂵🀌🁅 numbers of the future???
/s

I'm not even all kidding, Regex implementations are split on whether "٣" matches \d.

[–] Contravariant@lemmy.world 27 points 3 months ago (6 children)

It's simple ⅯⅯⅩⅩⅣis a number, MMXXIV is not.

load more comments (5 replies)
load more comments (21 replies)