713
you are viewing a single comment's thread
view the rest of the comments
[-] sirico@feddit.uk 33 points 2 months ago

It leads to typescript

You get surprises from npm

[-] ByteJunk@lemmy.world 28 points 2 months ago

I spent way too long today figuring out why my app was doing something that it's NOT supposed to do on weekends.

I read Luxon's docs (pretty cool lib tbh) again and again, and tried everything I could think of to get isWeekend to return a sane result.

Turns out I was pulling a somewhat older version of Luxon, where isWeekend didn't exist. In any sane language, I expect I'd get a huge warning about a property that doesn't exist, but alas...

Typescript helps me keep my sanity, but juuuuust barely.

[-] mynameisigglepiggle@lemmy.world 20 points 2 months ago* (last edited 2 months ago)

If isWeekend doesn't exist, then the weekend doesn't exist, so it's naturally false.

That's why JavaScript gets pushed so hard - it's part of the capitalist agenda to keep us working 7 days a week

load more comments (9 replies)
load more comments (10 replies)
this post was submitted on 21 Apr 2024
713 points (97.0% liked)

Programmer Humor

31229 readers
52 users here now

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

Rules:

founded 4 years ago
MODERATORS