News for hackers. Stuff that matters.
Re:Please put units in names by catlifeonmars on Monday March 21, 2022 @10:55AM (#30754832)
This is actually revealing a different problem: the system clock as an implicit dependency. YMMV depending on support of underlying libraries, but I will typically make the clock an explicit dependency of a struct/function. In Go, usually it’s a struct field `now func() time.Time` with a default value of `time.Now`.

There are no comments on this comment yet.