5 ms·
I keep coming back to the idea he's advocating using long function names as a substitute for comments. Instead of // do the thing followed by 5 lines of code t
by Gibbon1 1mo ago
I keep coming back to the idea he's advocating using long function names as a substitute for comments.
Instead of // do the thing followed by 5 lines of code to do the thing. You're supposed to put those five lines in a function named DoTheThing(). That doesn't seem better to me.
- chocrates 1mo agoI like function names like that. If your function name is obnoxiously long then you might be doing too much in your function. I'm a bad programmer though and nothing I do is particularly important enough to optimize.