Live data from Hacker News

Show HN: Weekle – a web app to learn how to calculate the day of the week

benjoffe.com

21–30 of 33 posts

Re: Show HN: Weekle – a web app to learn how to calculate the day of the week

#23
post #3

First question was “08/10/2023” The majority of the world uses little endian, so the 8th day of the 10th month of the 2023rd year. 8th October is Sunday, as I know that because it’s the same day as 9th of May. However experiments E has told me that much of the internet uses the minority American view of “middle endian” Probably worth making it clear.

Thanks, there is some attempt in the code to auto select US/Canada date format if the user's timezone is in the USA or Canada, but I didn't actually test it to see if it is activated correctly. Any US user's able to chime in if it does? Even if it works, I'll probably take your suggestion add a tip below the date to clarify the date format for the user's first session.

What do you consider the Canadian format? Most people I know prefer YYYY-MM-DD as it's non ambiguous. Anytime you see XX-XX-YYYY (or XX-XX-XX) it could just as easily be be little endian or weird American.

Re: Show HN: Weekle – a web app to learn how to calculate the day of the week

#24

Earlier quoted context omitted.

Thanks, there is some attempt in the code to auto select US/Canada date format if the user's timezone is in the USA or Canada, but I didn't actually test it to see if it is activated correctly. Any US user's able to chime in if it does? Even if it works, I'll probably take your suggestion add a tip below the date to clarify the date format for the user's first session.

What do you consider the Canadian format? Most people I know prefer YYYY-MM-DD as it's non ambiguous. Anytime you see XX-XX-YYYY (or XX-XX-XX) it could just as easily be be little endian or weird American.

The intention is to present dates the way they often are found in that country (not just the "gold standard"). From my understanding Canadians often encounter dates in all three formats you noted (although often using named months to avoid ambiguity).

All three date formats are used in Weekle when set to Canadian mode, and fully numeric d/m/y or m/d/y dates are only used if the date is >12 to avoid ambiguity.

Re: Show HN: Weekle – a web app to learn how to calculate the day of the week

#25
post #3

First question was “08/10/2023” The majority of the world uses little endian, so the 8th day of the 10th month of the 2023rd year. 8th October is Sunday, as I know that because it’s the same day as 9th of May. However experiments E has told me that much of the internet uses the minority American view of “middle endian” Probably worth making it clear.

Thanks, there is some attempt in the code to auto select US/Canada date format if the user's timezone is in the USA or Canada, but I didn't actually test it to see if it is activated correctly. Any US user's able to chime in if it does? Even if it works, I'll probably take your suggestion add a tip below the date to clarify the date format for the user's first session.

Until you have time to test your localizations, you’re better off just using simple common format.

Re: Show HN: Weekle – a web app to learn how to calculate the day of the week

#26

Earlier quoted context omitted.

Thanks, there is some attempt in the code to auto select US/Canada date format if the user's timezone is in the USA or Canada, but I didn't actually test it to see if it is activated correctly. Any US user's able to chime in if it does? Even if it works, I'll probably take your suggestion add a tip below the date to clarify the date format for the user's first session.

Until you have time to test your localizations, you’re better off just using simple common format.

The initial popup dialogue shows the default locale setting with a "change" button right next to it, and it can be changed at any time on the settings tab.

Re: Show HN: Weekle – a web app to learn how to calculate the day of the week

#27
post #14

Earlier quoted context omitted.

I don't think I'll spend the time to memorize the part for the anchor days, but the observation that March 0, 4/4, 6/6, 8/8, 10/10, 12/12 all land on the same day will definitely come in handy.

There's other mnemonics too, "I work 9-5 at the 7/11" and the observation that Jan 3 (normal) and Jan 4 (leap) can be remembered as, "3 times out of 4, it's January 3rd; the 4th, it's Jan 4th" Silly mnemonics but it's something. The design about even number days all landing on March 0 / last day of Feb is a good and simple one. I don't know what Weekle is innovating -- instead of using an established system of mnemon…

As I noted in this HN post, I did not invent this system (there are other tutorials online). I'll update the web app itself to state this clearly.

The goal of the web app is more about the practice modes and daily game, people are free to use Doomsday for these if they like.

Re: Show HN: Weekle – a web app to learn how to calculate the day of the week

#28
Dividing by 7 is also a cool trick and it’s way easier than this.

1/7th is 0.142857 recurring. All you need to remember is one-four-two-eight-five-seven. Say it over and over. It’s my favourite number.

The magic: to get 2/7, 3/7, any/7, just move the decimal point:

- 2/7: 0.285714285714…

- 3/7: 0.428571428571…

- 4/7: 0.571428571428… (I’m typing these out but ‘from memory’ but not really: only by knowing 1-4-2-8-5-7)

- 5/7 & 6/7: left as an exercise for the reader.

So then the trick is to play a bit of mental magic. Pretend like this is really hard and that every decimal point is stretching your mental capacity to its very edge.

31/7? That’s 4, with 3/7 left over. Say it out loud as you gaze in to the middle distance and do this difficult, difficult calculation in your head: “four point four two eight five seven … one four … two eight five … seven one four …” and so on.

A fun trick which is very occasionally practically useful.

Re: Show HN: Weekle – a web app to learn how to calculate the day of the week

#29
post #28

Dividing by 7 is also a cool trick and it’s way easier than this. 1/7th is 0.142857 recurring. All you need to remember is one-four-two-eight-five-seven. Say it over and over. It’s my favourite number. The magic: to get 2/7, 3/7, any /7, just move the decimal point: - 2/7: 0.285714285714… - 3/7: 0.428571428571… - 4/7: 0.571428571428… (I’m typing these out but ‘from memory’ but not really: only by knowing 1-4-2-8-5-7)…

that's really cool. but how does it help determine the day of week?
Post reply on HN