3 ms·
I use both. I use underscore for global functions, and camel case for functions specific to the module. So an underscore function can not (easily) be modified
by ars 12y ago
I use both. I use underscore for global functions, and camel case for functions specific to the module.
So an underscore function can not (easily) be modified to suit a particular function since it's used all over the place.
But a camel case function can be modified because it is only used in the same part of the program, so you can easily change all uses of it.