cascadiajs / 2015.cascadiajs.com

The official repo for the CascadiaJS 2015 conference
MIT License
54 stars 29 forks source link

Datetime Math Is Hard #299

Closed cdelauder closed 9 years ago

cdelauder commented 9 years ago

Datetime Math Is Hard

When I was learning to code, I had one instructor who, anytime someone was immersed in issues with dates, would exclaim "Datetime math is hard!" It's true, datetime math is hard and I see many devs struggling with it. Now that I work at a calendar company I have had to get really good at it. There are 2 valuable and probably controversial conclusions which I would like to share; milliseconds are you friend, while strings are the enemy, and the Javascript Date object needs a lot of help. Given that ES6 (or whatever they want us to call it now) isn't going to add much to Date, we need to learn how to work with what we have.

Speaker Bio

Chris and Nibbler at work

After nearly a decade of training dogs, I learned how program computers at Dev Bootcamp. Now I am helping to redefine how we use calendars at stanza.co with the help of my beagle and company mascot Nibbler. I am also an avid curler and have the pants to prove it.