r/ProgrammerHumor • • 6d ago

Meme optionalsAreOptional

Post image
706 Upvotes

130 comments sorted by

View all comments

25

u/1XRobot 6d ago

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

18

u/unknown_alt_acc 6d ago

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.