this post was submitted on 21 Apr 2024
718 points (97.0% liked)

Programmer Humor

32568 readers
756 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@programming.dev 2 points 7 months ago (1 children)

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

[โ€“] ByteJunk@lemmy.world 2 points 7 months ago

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