3 ms·
Passing arguments to a function instead of using global state is generally a good idea, but that's a very poor example. Having to pass constants to a function w
by laurent123456 9y ago
Passing arguments to a function instead of using global state is generally a good idea, but that's a very poor example. Having to pass constants to a function would increase the cognitive load rather than reduce it.