Lurker News

Comments (98) 41 threads

Earlier comments
ai_ia2 replies#
A feature addition: Clicking on a particular month, should select its column and decrease the opacity of other months. Will increase readability.
captn3m0#
Another suggestion: Keep the width of all dates equal, so that the first column does not look weird.
simplect#
Another suggestion: add toggle option to rotate tables 90 degrees for conventional horizontal view.
intrepidhero2 replies#
This is pretty clever and I admire the author for coming up with an elegant way to show the mapping of week days to dates. I'd be particularly interested to see the algorithm behind it. Date computations are very tricky.

A few years ago I made script to generate a one page calendar because the ones they hand out at work are particularly ugly. In addition to showing the date<->weekday mapping I also wanted it to show holidays and pay periods. This is one of the (few) things stuck on my wall.
https://intrepidhero.gitlab.io/mkcal/cal2020.html
https://gitlab.com/intrepidhero/mkcal

kohtatsu1 reply#
Generate grid (it's static);

Find first weekday of month using your favourite algorithm;
Print month's name above the column that begins with that weekday.

intrepidhero1 reply#
favourite algorithm is left as an exercise to the reader. ;-)
zamadatix#
Favorite algorithm can be as simple as "look at the first day of each month on a normal calendar".
IshKebab#
Date computations like this are not at all tricky.
app4soft1 reply#
Its not clear about such limitations as Feb <= 28/29 & Apr/Jun/Sep/Nov <= 30
jrockway#
You can tell that 2020 is a leap year because if you look up the day of the week for Feb. 28, it's Friday, and March 1st is a Sunday. That must mean that Feb. 29th is a Saturday. And indeed it is.
joelanman2 replies#
A few years back I took part in an online design challenge to make a pocket calendar - it was a lot of fun, my designs are here:

https://www.flickr.com/photos/joelanman/albums/7215759450272...
One of them is very similar to this one (Design 2) - I was tidying up someone else's idea. Dunno if David Seah's was related in any way or just people came up with the same idea.

barroomhero1 reply#
Design 3 is quite nice. For me, it's the quickest to read.
alabut#
Agreed. I love stacking the months like that and turning it into a never-ending river of days, looks like it'd be easier to estimate the length of time between two different months.

Load more comments