this post was submitted on 21 Apr 2024
702 points (97.1% liked)

Programmer Humor

32394 readers
676 users here now

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

Rules:

founded 5 years ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[โ€“] owsei 2 points 6 months ago (1 children)

I don't know how luxon works, but isWeekend could be a property instead of a function

[โ€“] [email protected] 2 points 6 months ago

It is. It also happens to be undefined, and checking that for truth is how I was bitten.