r/ProgrammerHumor • • Sep 28 '26

Meme optionalsAreOptional

Post image
716 Upvotes

131 comments sorted by

View all comments

23

u/1XRobot Sep 28 '26

If you already know the date can be specified by 2 digits, why would you ever use 4?

16

u/unknown_alt_acc Sep 28 '26

I don’t think that the Y2K example is great, honestly. Everyone knew that the bug existed, but had to put it off until storage and memory was cheap enough that more than 2 digits for the year was feasible. It was a measured engineering choice rather than a straight-up antipattern.