2 ms·
Descriptive names are great when a symbol is used in many scattered places. Context is okay when the definition is right in front of you. When a function is sho
by skybrian 10y ago
Descriptive names are great when a symbol is used in many scattered places. Context is okay when the definition is right in front of you. When a function is short enough, context for a parameter should mean reading the function's documentation written immediately above it. Or if the scope of a local variable is three lines, its initializer often explains what it is, and it's right there.