this post was submitted on 01 Dec 2023
334 points (98.0% liked)

Programmer Humor

32472 readers
467 users here now

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

founded 5 years ago
MODERATORS
 

I know this isn't any kind of surprise, and yet, well...

you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 7 points 11 months ago (3 children)

I'm not worried about my code, I'm (very slightly) worried about all the date libraries I used because I didn't want code that shit again for the billionth time.

[–] [email protected] 7 points 11 months ago (1 children)

Your comment made me go look at the source for moment.js. It has "leap" 13 times and the code looks correct. I assume they test stuff like this.

[–] [email protected] 4 points 11 months ago (1 children)

Yeah, I'm generally using the common data/time libraries in most (if not all) languages and I'm pretty sure they've all been through more than 1 leap year at this point. I just never 100% trust the code I don't control - 99.9% maybe, but never 100.

[–] [email protected] 3 points 11 months ago

I just never 100% trust the code I don't control

I never 100% trust the code I do control. Partially because a lot of it is inherited but also because I know corners were cut but I can't always remember when and where

load more comments (1 replies)