This isn’t an isolated case: as I mentioned, I see it at least a few times per week and I imagine this happens at least a dozen times a day here in some thread or other.
Thanks for being awesome flukus. I love HN.
I would like to hear some original thoughts on why this is so difficult that a human is doing this work instead.
Obviously maintaining a different behaviour for a class of product ids is painful and not beautiful code to look at, but it is the real world.
For easier archiving and proper retrieval of history.
Same practice goes with credit cards, a charge confirmation (like something that would be generated after a stripe charge.succeeded webhook) stored in DB wouldn't be retroactively updated to new last-4-digits if the user switches the card saved in their account.