Owntracks link is broken.
Owntracks link is broken.
Variable names shouldn’t need comments, period. You don’t want to look it up every time this variable is used in code, just to understand what it holds. Of course there are always exceptions, but generally names should be descriptive enough to not need additional explanation.
And context can also come from names of other things, e.g. name of a class / namespace that holds this variable. For example AccessibilitySettings.HighContrast
, where AccessibilitySettings holds all options related to accessibility.
If it’s a hundred years or so before book events, and not in Vorin kingdoms (Azir maybe?) then sure. Scadrial during Elendel era would offer a better quality of life though.
That’s the problem of most general-use languages out there, including “safe” ones like Java or Go. They all require manual synchronization for shared mutable state.