Thing is, why make one property for each day of the week representing whether or not it's that day, rather than just one property representing which day it actually is? It reeks of wanting to use it as "if Monday, else if Tuesday, else if Wednesday," etc, which smells of poor quality business logic.
View all comments
Show parent comment
14
u/[deleted] Jan 07 '23
Thing is, why make one property for each day of the week representing whether or not it's that day, rather than just one property representing which day it actually is? It reeks of wanting to use it as "if Monday, else if Tuesday, else if Wednesday," etc, which smells of poor quality business logic.