Easter is a coding horror

Blog » You may be like me. Every now and then, at least once a year, when you think about Easter, you go to try and find out exactly how the date of Easter is calculated. You get as far as this Wikipedia page, you read it for a while, and then your head sort of caves in a little.
In my case, I have a page called the Lent Countdown. Currently, the date of Easter is hard-coded in that small bit of JavaScript, which means it needs updating manually every year. Every year I try to write an extra small bit of JavaScript to save myself the effort and every year I give up and fix the date manually, handing the problem off to a future self who is potentially more intelligent or tenacious.
Easter, it seems, is a coding horror. It may be the human race's first.
Most calendar systems are of necessity pretty horrible due to the way in which the rotation of the Earth, the revolution of the Sun, the phases of the Moon and the normal progression of SI seconds all fail to synchronise with one another. The ec...
 •  0 comments  •  flag
Share on Twitter
Published on January 02, 2015 16:19
No comments have been added yet.


qntm's Blog

qntm
Follow qntm's blog with rss.