Hacker News new | ask | show | jobs
by d2p 2334 days ago
Reminds me of a bug in PostSharp.. After making some changes our app would throw a NullReferenceException Mondays. It turned out to be a bug in some optimisation, but it only occurred on Monday because they skipped licence checks unlocking "full functionality" on a Monday (Happy Monday!) which enabled the optimisation.

https://plus.google.com/113181962167438638669/posts/QF5pDB4X...

2 comments

We had a bug that would pop up only when we weren't working (at lunch breaks, meetings etc) but when we were at our desks it never reproduces. It ended up related to the screen saver starting up. It took us too long to find that out but that was a very good laugh.
i can't remember exactly now, but webpack had a monday-only bug as wellat some point last year.
Monday-only bugs and similar are not unlikely with code dealing with weekday ordinals, when moving between locales with different conventions (is Monday or Sunday the first day of the week?). Or can cause any number of confusions if different bits of code make different assumptions.

I'm not sure why that would affect something like webpack though (unless the problem was specific to a date manipulation library).

Edit: spotted the post that arrived as I typed the above. Looks like an advertising related function that only ran once per week using something not available on all sorted OS builds for that code, so not a locale related problem. Advertising causing unexpected problems yet again!