Re:Gpsd bug may create a 1024 week time warp on October 23
by joppy on Tuesday August 03, 2021 @12:40AM
(#28045768)
When working with lots of timeseries information I've found it helpful to always order comparisons so that left-to-right is always increasing, so I would write 2180 < week, or even (not 2180 < week) for the negation of the condition. This becomes almost required when there are multiple values being tested: (a <= 10 && 10 <= b && b <= c) is much easier to read than (a <= 10 && b >= 10 && b <= c). As a perspective, it's more focussed on establishing an invariant of the resulting data than writing a single predicate.
[ Parent
| on HN ]
There are no comments on this comment yet.