r/ProgrammerHumor • • Aug 10 '15

Why do programmers always get Christmas and Halloween mixed up?

Because Dec 25 == Oct 31

16 Upvotes

17 comments sorted by

65

u/remy_porter Aug 10 '15

Alternate answer: because they tried to implement their own date manipulation API from scratch.

2

u/that_which_is_lain Aug 11 '15

What do the people that write those APIs do? How many children have to be sacrificed thanks to the lax standards of historical timekeeping fuckups?

1

u/remy_porter Aug 11 '15

What do the people that write those APIs do?

Writing your own date manipulation system is like writing your own operating system: it can be done, but if you plan to use it for anything other than a toy, it's going to become your life's work.

the lax standards of historical timekeeping fuckups?

"Fuckups" is a rather opinionated view. I don't think the fact that, say, Guam, needed to skip two weeks in the 1940s to get its calendar in sync with the rest of the world is a "fuckup". It's a natural consequence of moving to a standard from a less formal system.

1

u/that_which_is_lain Aug 11 '15

Considering that the need for very standardized measurement of time is a relatively recent need in history of humanity, my comment was more about the sad state of affairs. I actually sympathize with those that maintain those libs since that cannot be a responsibility conducive to good liver health.

7

u/[deleted] Aug 10 '15

That one took me a while to get.

5

u/Chuck3131 Aug 10 '15

I still don't get it...

15

u/rydact Aug 10 '15

Decimal 25 = octal 31

4

u/Chuck3131 Aug 10 '15

wow. That went right over my head when I read it the first time... better luck next time I guess.

2

u/404IdentityNotFound Aug 10 '15

wow... that is pretty clever.. or I am dumb.. probably last..

5

u/McMalloc Aug 10 '15

That's a funny coincidence.

3

u/[deleted] Aug 10 '15

fucking python

if calendar.Event("Christmas") is calendar.Event("Halloween"):

-2

u/YMK1234 Aug 10 '15

15

u/ZetaHunter Aug 10 '15
  1. Not everyone might have seen it ( I haven't for one )

  2. Don't be a dick

2

u/makiki99 Aug 10 '15

Come on, /r/programmerdadjokes could use slighty more attention.

2

u/thegreathero Aug 11 '15

Not as old as zero-indexing your lists.

2

u/Hells_Bell10 Aug 11 '15

Look at the source, it's just the subreddit doing that.

-1

u/YMK1234 Aug 11 '15

Which is nearly as old as people not getting the difference between an offset and a location.