#0254 · 反偷懒
不许拿 sleep 糊弄
修不稳定的问题时,禁止靠加 sleep、加大超时或加重试次数了事。先说清楚是在等什么,然后改成等那个条件真正满足。如果确实只能重试,说明理由和上限。
When fixing flaky behaviour, no adding sleeps, longer timeouts or more retries to paper over it. First say what you are actually waiting for, then wait for that condition. If a retry is truly the only way, explain why and set a limit.
小杜
已贴 1,040 张上墙共收到 0 个章