[Remind-Fans] Coding style (was Re: Repeat every six months)

Dianne Skoll dianne at skoll.ca
Fri Mar 4 14:29:10 EST 2022


On Fri, 4 Mar 2022 14:14:36 -0500
hymie! via Remind-fans <remind-fans at lists.skoll.ca> wrote:

> "Take the number of the month (Tm) , divide it by 6, and check the
> remainder." The remainder is 3 during the months of March and
> September.

In my opinion, that's a lot harder to understand than:

"Trigger if the month ($Tm) is 3 or if it is 9."

The modular arithmetic one is also harder to generalize to handle
things like "End of February and end of April".

Regards,

Dianne.


More information about the Remind-fans mailing list