223
submitted 1 year ago* (last edited 1 year ago) by DroneRights@lemm.ee to c/programmer_humor@programming.dev

Yes, someone actually did this and I found it running on our server

you are viewing a single comment's thread
view the rest of the comments
[-] JeffKerman1999@sopuli.xyz 21 points 1 year ago
[-] Zagorath@aussie.zone 11 points 1 year ago* (last edited 1 year ago)

Both Monday and Sunday are used as the first day of the week with quite some regularity. It's a completely arbitrary standard no different to "the tenth month is the one called "October". Or dividing a day into 24 segments which are each broken into 60 smaller segments of 60 even smaller segments. You can't say either is "wrong" per se.

Personally, I was brought up learning Sunday is the first day of the week, but at some point decided that was bullshit partly because it's the week end. But also just from a practical standpoint when looking at a calendar, it's useful to have the weekend days grouped together.

[-] Cosmicomical@kbin.social 3 points 1 year ago

Funny thing, september comes from the number 7, october from 8 and november and december from 9 and 10, as the year in ancient rome was starting around march. This problem is timeless.

[-] Zagorath@aussie.zone 2 points 1 year ago

Huh. I knew about the problem (that’s why I used October as my example, rather than, say, February), but I was mistaken as to the cause. The way I had always heard it told, September–December don’t match their current place in the year because of the addition of July and August. But I just looked it up and it seems you’re right. Those months are merely renamings of Quintilis and Sextilis, and the numbering issue comes from moving the start of the year from March to January.

[-] Cosmicomical@kbin.social 2 points 11 months ago

Phew luckily my random memory was correct this time!

[-] DroneRights@lemm.ee 2 points 1 year ago

Yeah, that's why my calendar starts the week on Saturday

[-] theKalash@feddit.ch 9 points 1 year ago
[-] JeffKerman1999@sopuli.xyz 19 points 1 year ago

Ah the same place that uses feet and inches, and puts the month before the day, and cannot read a 24 hour clock?

[-] DroneRights@lemm.ee 4 points 1 year ago

I was off by one, but Sunday is 0 in javascript

[-] Cralder@feddit.nu 13 points 1 year ago
[-] DroneRights@lemm.ee 2 points 1 year ago

That's nice, you can run weekend = dayOfWeek > 5 and then explain to the boss why clients are getting work texts on a sunday

[-] JeffKerman1999@sopuli.xyz 8 points 1 year ago

Don't use JavaScript on the backend ¯\_(ツ)_/¯

[-] Cosmicomical@kbin.social 2 points 1 year ago

Yo nodejs is just plain amazing. We should just keep improving on js and replace all other languages. Js is already on all browsers, by adopting it on the server you get huge efficiency as you can move code AND coders between backend and frontend. Of course you must make the right choices of practices and frameworks for this to be possible

[-] JeffKerman1999@sopuli.xyz 1 points 1 year ago

I agree! How many js frameworks spawned today? Which one is best?

[-] DroneRights@lemm.ee 2 points 1 year ago

I'll be sure to tell my boss to throw away all the work he already paid for and start over in a different language. I'm sure he'll be very understanding

[-] emmanuel_car@kbin.social 6 points 1 year ago
[-] DroneRights@lemm.ee 2 points 1 year ago

I don't think you understand the concept of having a boss.

Earlier this week I proved to him that his new "more secure" password policy results in passwords that can be cracked in under a minute, and he didn't care

[-] xmunk@sh.itjust.works 2 points 1 year ago* (last edited 1 year ago)

Sneak in a library that makes things more sane when nobody is looking...

Also, that isn't "having a boss" it's having a shit boss. As an engineering manager I am happy to go to bat and make excuses for time my reports spend paying down technical debt and making things more maintainable (within reason of course, and if shits really bad I can usually sneak a sustainability project into the timeline).

We'll always need to make some compromises for our workplaces, the perfect job doesn't exist, but what you described is a huge red flag. You deserve respect at work.

[-] DroneRights@lemm.ee -1 points 1 year ago* (last edited 1 year ago)

That's nice, you can run weekend = dayOfWeek > 5 and then explain to the boss why clients are getting work emails on a sunday

[-] oolio@feddit.de 6 points 1 year ago

Cron has clearly the superior numbering system, where sunday is both 0 and 7

[-] kungen@feddit.nu 1 points 1 year ago* (last edited 1 year ago)

Depending on how you're counting your integers, Monday is 0, being the first day of the week.

this post was submitted on 16 Nov 2023
223 points (95.5% liked)

Programmer Humor

19544 readers
514 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