1. 40

  2. 5

    A fun one I’ve noticed recently - January 19th 1970 is (currently) the date you get if you interpret a second-count timestamp such as those in Python as a millisecond-count timestamp like those in JS.

    1. 3

      Are ARM-based MacBooks not little-endian?

      1. 3

        To generalize slightly on the first three, one debugging tip I often recommend to coworkers is simply learning to recognize what ASCII text looks like in hex (it’s pretty easy to do, and once you’ve noticed it, piping it into xxd -r -p to read it is trivial). That little observation has provided me very valuable debugging clues many, many times.

        1. 2

          2000 is how many hours you work in a year if you work 40 hours a week for 50 weeks and the other two are handled as “vacation”.

          Ouch. Always depressing to hear that. :-(

          People should have ample time to do non-work things in life.

          1. 1

            Here’s a magic number that I ran into at work.
            Outlook emails without an assigned time will have a date of 1/1/4501.

            1. 1

              Now one needs to learn that whenever some output is unexpected, the first step is to assume it a “magic number”. And once one learns that, they will realise that very often it’s not.

              And the cycle continues. . .