4 ms·
In camel case, "two words" becomes setUp. I'm not sure that capitalizing 'U' does any good for future readability. I suppose that in snake case it might be a l
by dikaiosune 12y ago
In camel case, "two words" becomes setUp. I'm not sure that capitalizing 'U' does any good for future readability.
I suppose that in snake case it might be a little clearer, but in many cases it would still be good either way that someone named their method/function/variable fairly descriptively.
- jcbrand 12y agoI'm actually ok with it being written "setup" in that case. It's then just a noun and not a verb. However something like "cleanupInstance" is much better written cleanInstance or cleanUpInstance