News for hackers. Stuff that matters.
Re:Please put units in names by gregmac on Monday March 21, 2022 @01:17PM (#30756887)
Totally agree, but then I would expect the code would be:

    request.setConnectTimeout(getDefaultTimeoutFromEnvironment())
with getDefaultTimeoutFromEnvironment() returning a Duration.

Ideally this is consistent throughout the codebase, so that anything that uses a primitive type for time is explicitly labelled, and anything using a Duration can just be called "Timeout" or whatever.

There are no comments on this comment yet.