▲ | deadbabe 4 days ago | |||||||||||||||||||||||||
You will have exactly the same problem if delay_in_milliseconds is actually misnamed and the delay is measured in seconds. Comments lie. Names lie. Code is the only source of truth. | ||||||||||||||||||||||||||
▲ | fwip 3 days ago | parent [-] | |||||||||||||||||||||||||
No - "delay_in_milliseconds" will let you find the error and resolve it faster. With the less descriptive name, you need to notice the mismatch between the definition and the use site, which are further apart in context. Imagine you see in your debugger: "delay_in_milliseconds: 3" in your HttpTimeout - you'll instantly know that's wrong. If you believe your reductive argument, your function and variable names would all be minimally descriptive, right? | ||||||||||||||||||||||||||
|