Skip to main content
Commonmark migration
Source Link

Upon reading the definition, I have apparently encountered quite a few heisenbugs in the realm of Java Time-Date issues and a whole slew of questions related to leap years, ancient time, and legacy timezones.

However, labeling them heisenbugs would not have helped improve these questions nor increase its solvability.

Conceptually, heisenbugs exist, but understanding that they're called heisenbugs (which I didn't even know about until today) or caring that they are heisenbugs, doesn't help solvers in any way. We know what the problem is (inconsistent time values, in this case). We don't need it to be classified as such when the question describes the anomalous behavior already.

Examples of Java time-based questions I have encountered that I would retroactively describe as heisenbugs:

Java Calendar.DAY_OF_YEAR sometimes off by one

Discrepancy when converting ancient dates between java.util.Date and java.time.Instant

java calendar returns wrong week

All of these questions had sample code that had valid MCVEs that revealed heisenbug-like problems when the provided parameters or MCVE were adjusted.

Upon reading the definition, I have apparently encountered quite a few heisenbugs in the realm of Java Time-Date issues and a whole slew of questions related to leap years, ancient time, and legacy timezones.

However, labeling them heisenbugs would not have helped improve these questions nor increase its solvability.

Conceptually, heisenbugs exist, but understanding that they're called heisenbugs (which I didn't even know about until today) or caring that they are heisenbugs, doesn't help solvers in any way. We know what the problem is (inconsistent time values, in this case). We don't need it to be classified as such when the question describes the anomalous behavior already.

Examples of Java time-based questions I have encountered that I would retroactively describe as heisenbugs:

Java Calendar.DAY_OF_YEAR sometimes off by one

Discrepancy when converting ancient dates between java.util.Date and java.time.Instant

java calendar returns wrong week

All of these questions had sample code that had valid MCVEs that revealed heisenbug-like problems when the provided parameters or MCVE were adjusted.

Upon reading the definition, I have apparently encountered quite a few heisenbugs in the realm of Java Time-Date issues and a whole slew of questions related to leap years, ancient time, and legacy timezones.

However, labeling them heisenbugs would not have helped improve these questions nor increase its solvability.

Conceptually, heisenbugs exist, but understanding that they're called heisenbugs (which I didn't even know about until today) or caring that they are heisenbugs, doesn't help solvers in any way. We know what the problem is (inconsistent time values, in this case). We don't need it to be classified as such when the question describes the anomalous behavior already.

Examples of Java time-based questions I have encountered that I would retroactively describe as heisenbugs:

Java Calendar.DAY_OF_YEAR sometimes off by one

Discrepancy when converting ancient dates between java.util.Date and java.time.Instant

java calendar returns wrong week

All of these questions had sample code that had valid MCVEs that revealed heisenbug-like problems when the provided parameters or MCVE were adjusted.

Source Link
Compass
  • 5.9k
  • 2
  • 20
  • 30

Upon reading the definition, I have apparently encountered quite a few heisenbugs in the realm of Java Time-Date issues and a whole slew of questions related to leap years, ancient time, and legacy timezones.

However, labeling them heisenbugs would not have helped improve these questions nor increase its solvability.

Conceptually, heisenbugs exist, but understanding that they're called heisenbugs (which I didn't even know about until today) or caring that they are heisenbugs, doesn't help solvers in any way. We know what the problem is (inconsistent time values, in this case). We don't need it to be classified as such when the question describes the anomalous behavior already.

Examples of Java time-based questions I have encountered that I would retroactively describe as heisenbugs:

Java Calendar.DAY_OF_YEAR sometimes off by one

Discrepancy when converting ancient dates between java.util.Date and java.time.Instant

java calendar returns wrong week

All of these questions had sample code that had valid MCVEs that revealed heisenbug-like problems when the provided parameters or MCVE were adjusted.