Remix.run Logo
cyberax 18 hours ago

One of my personal rules is to ALWAYS suffix the variables and fields with unit names:

`timeout_ms` or `rate_kbps`, NOT `timeout` or `rate`.

Unless the variable type already constrains it (e.g. Duration in Go).

monkpit 15 hours ago | parent | next [-]

Until someone comes along and changes it without updating the name, or the value comes from a remote service and they change without you changing your name… etc.

markus_zhang 17 hours ago | parent | prev [-]

This also helps downstream a lot.