look, don’t get me wrong, I personally think regulation of essential consumer services is a good idea, but sometimes regulators will just come up with rules without thinking about how the maths will work and how it interacts with all the other rules
0 Boosts
0 Likes
(Which regulatory instrument I am subtooting here is left as an exercise for the reader.)
@daisy And if there's any averaging over a day.... daylight savings, bitches!
@daisy if your law is intended to be implemented with computer code, then your law should also provide a runnable reference implementation and/or runnable unit tests. Any code that produces the same results as the reference implementation, or passes all unit tests, should legally be considered a correct implementation.
(Code that passes but does not match your intent means your law is incorrectly or under specified. If you don’t want to specify, then the answer is “implementation defined”.)
If you are a regulator and you have very strict rules about estimations over a year, please for the love of all that is good specify what you expect implementors to do in leap years. Also if you have stuff that is to do with weekdays and weekends it would be nice to have it specified what you expect implementors to do about the fact that the year does not divide evenly into weeks.