• 0 Posts
  • 31 Comments
Joined 1 year ago
cake
Cake day: June 26th, 2023

help-circle
  • If you’re branching logic due to the existence or non-existence of a field rather than the value of a field (or treating undefined different from null), I’m going to say you’re the one doing something wrong, not the Java dev.

    These two things SHOULD be treated the same by anybody in most cases, with the possible exception of rejecting the later due to schema mismatch (i.e. when a “name” field should never be defined, regardless of the value).














  • Sounds like the heuristic is taking multiple samples only uses them if they are within some consistency threshold, to hedge against the cases where the field has random data.

    The reason it only fails rarely and randomly is because it only happens when multiple actually random timestamps happen to line up around the same time.

    Sort of like how several applications (cough git cough) have failure modes when two different files happen to have the same hash.

    Turns out developers are bad at statistics and probabilities and don’t understand the birthday paradox.