Bad names cost time. Good names vanish โ because they just make sense.
Hereโs what works today:
- โ isVisible, hasAccess, canRetry โ clear boolean flags
- ๐ onClick, onClose โ event handlers by name
- ๐งฉ useToggle โ hint that thereโs logic inside
- ๐งฎ i, j, x, y, r, g, b, t โ short, but always clear in context
- ๐งฑ MAX_USERS, DEFAULT_PORT โ constants should scream
Naming is the most portable skill in engineering. Use it well.
๐ Full write-up โ https://javascript.plainenglish.io/readable-code-in-2025-how-to-name-everything-right-69ebab02e35c
Top comments (0)