Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
cmwelsh
· 6y ago · 0 comments
I am using java.time.Clock class in Java - really similar to what’s mentioned for Go in the article! It works great and enables us to write reliable, comprehensive, reproduce-able unit tests.
Comments
[–]
oftenwrong
6y ago
Same here. Any code that references the current time gets it from a Clock parameter.