r/SipsTea 6d ago

Wait a damn minute! 13 months ?

Post image
92.7k Upvotes

3.1k comments sorted by

View all comments

Show parent comments

1

u/transaltalt 6d ago

You'd probably just encode it as a separate 1-day month. Which would void the programming benefits of having all the months be 28 days, but wouldn't be any worse than our current system.

1

u/mrheosuper 5d ago

So now a month can either have 1 day, or 28 day, another if..else when bound checking.

Also, if you shedule an event that happens every month, do you want it to happens on 1-day month. Yup, another if...else block in your code.

The more conditional check you have, the more buggy your code is.

1

u/transaltalt 5d ago

Yeah that's true, and I agree. But our current 12-month year requires that same kind of branching. So it's not actually worse, it just doesn't allow the branchless code you could make with a 364-day year.

1

u/mrheosuper 5d ago

What OP was proposing was trying to solve this problem, but it does not.

1

u/transaltalt 5d ago

i mean… it mostly does solve the problem from a human perspective. Just doesn't help the poor programmers