|
|
|
|
|
by falcolas
4030 days ago
|
|
Personally, if I'm reading the code, seeing `maxRetries` is more meaningful than 5. `maxRetries` both abstracts away the 5 (which could change at whim), and makes it so I don't have to parse the surrounding code to identify exactly what that loop is doing (unless it's not working, in which case I have to parse that loop anyways). It also encourages you (for better or worse) to use `maxRetries` in multiple places. The value of 5 is, in the long run, meaningless. It could have easily been 3 or 10. |
|