3 ms·
Very often a variable name needs to provide more context. I have found it very useful to use under_scores as a form of punctuation within camelCase to visually
by jdontillman 12y ago
Very often a variable name needs to provide more context.
I have found it very useful to use under_scores as a form of punctuation within camelCase to visually connect related variables.
Like this:
spectrumPlot_x
spectrumPlot_y
spectrumPlot_drawHarmonics
qa_signalDone
qa_setLoadedFlag
requestTimeout_minValue
requestTimeout_maxValue
... and so forth.
(Note that the opposite doesn't work: camelCase as a punctuation within under_scores.)
- Gibbon1 12y agoIn c often I use underscores to deal with lack of name spaces and or classes. As in Module_FunctionName()